1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00: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:
Timo Sirainen 2001-12-16 01:41:29 +00:00 committed by cras
parent 5916b9dcb8
commit 6720940e1a
4 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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 */

View File

@ -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);
}

View File

@ -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);
}
}