mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Leading zeros didn't work well in IRSSI_VERSION_TIME.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2261 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5916b9dcb8
commit
6720940e1a
@ -759,7 +759,7 @@ dnl **
|
||||
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
|
||||
dnl **
|
||||
VERSION_DATE=`head -1 $srcdir/ChangeLog|sed 's/^\(....\)-\(..\)-\(..\).*/\1\2\3/'`
|
||||
VERSION_TIME=`head -1 $srcdir/ChangeLog|sed 's/^[[^ ]]* \(..\):\(..\).*/\1\2/'`
|
||||
VERSION_TIME=`head -1 $srcdir/ChangeLog|sed -e 's/^[[^ ]]* \(..\):\(..\).*/\1\2/' -e 's/^0*//'`
|
||||
AC_SUBST(VERSION_DATE)
|
||||
AC_SUBST(VERSION_TIME)
|
||||
|
||||
|
@ -371,7 +371,7 @@ static char *expando_releasedate(SERVER_REC *server, void *item, int *free_ret)
|
||||
static char *expando_releasetime(SERVER_REC *server, void *item, int *free_ret)
|
||||
{
|
||||
*free_ret = TRUE;
|
||||
return g_strdup_printf("%d", IRSSI_VERSION_TIME);
|
||||
return g_strdup_printf("%04d", IRSSI_VERSION_TIME);
|
||||
}
|
||||
|
||||
/* current working directory */
|
||||
|
@ -97,7 +97,7 @@ void fe_core_commands_deinit(void);
|
||||
|
||||
static void print_version(void)
|
||||
{
|
||||
printf(PACKAGE" " IRSSI_VERSION" (%d %d)\n",
|
||||
printf(PACKAGE" " IRSSI_VERSION" (%d %04d)\n",
|
||||
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
|
||||
exit(0);
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ static void cmd_version(char *data)
|
||||
|
||||
if (*data == '\0') {
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
|
||||
"Client: "PACKAGE" " IRSSI_VERSION" (%d %d)",
|
||||
"Client: "PACKAGE" " IRSSI_VERSION" (%d %04d)",
|
||||
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user