summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-11-16 15:38:33 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-11-16 15:38:33 +0000
commit25358fa1ecc9f5a5556d356387b8a93051bbac8c (patch)
tree8c794c1536a0f48d43739c41d6a2afd61557168e
parentca5f4ec1f924ab1f87042dfec7ee020e6a759ea5 (diff)
downloadirssi-25358fa1ecc9f5a5556d356387b8a93051bbac8c.zip
Fix regression introduced in r4906, remove leading zeros from
IRSSI_VERSION_TIME value. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4913 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rwxr-xr-xirssi-version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/irssi-version.sh b/irssi-version.sh
index c808e8a6..a20ea9ba 100755
--- a/irssi-version.sh
+++ b/irssi-version.sh
@@ -8,6 +8,6 @@ else
DATE=`awk -F '|' 'NR == 2{print substr($3, 2)}' "$1"/ChangeLog`
fi
VERSION_DATE=`echo $DATE | cut -f 1 -d ' ' | tr -d -`
-VERSION_TIME=`echo $DATE | cut -f 2 -d ' ' | awk -F : '{print $1 $2}'`
+VERSION_TIME=`echo $DATE | cut -f 2 -d ' ' | awk -F : '{printf "%d", $1$2}'`
echo "#define IRSSI_VERSION_DATE $VERSION_DATE"
echo "#define IRSSI_VERSION_TIME $VERSION_TIME"