1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-22 04:35:58 -04:00

Byebye stupid tail problems on Solaris. Hi, Mr. grep

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3711 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2005-02-22 00:05:06 +00:00 committed by coekie
parent 47b5dcb538
commit a809cecda8
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ perl syntax.pl
# otherwise the log will have local timezone
SVN=svn
if test -f $srcdir/ChangeLog; then
CHANGELOG_VERSION=`head -n 2 $srcdir/ChangeLog| tail -1 | sed 's/^r\([0-9]*\).*/\1/'`
CHANGELOG_VERSION=`head -n 2 $srcdir/ChangeLog| grep '^r' | sed 's/^r\([0-9]*\).*/\1/'`
fi
if test -z $CHANGELOG_VERSION; then
echo "Getting ChangeLog from svn..."

View File

@ -913,8 +913,8 @@ fi
dnl **
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
dnl **
VERSION_DATE=`head -n 2 $srcdir/ChangeLog| tail -1 | awk '{print $5}' | tr -d '-'`
VERSION_TIME=`head -n 2 $srcdir/ChangeLog| tail -1 | awk '{print $6}' | awk -F: '{printf "%d\n", $1$2}'`
VERSION_DATE=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $5}' | tr -d '-'`
VERSION_TIME=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $6}' | awk -F: '{printf "%d\n", $1$2}'`
AC_SUBST(VERSION_DATE)
AC_SUBST(VERSION_TIME)