summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-02-22 00:05:06 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-02-22 00:05:06 +0000
commita809cecda81bfc2c630eb2a55a25cf72ef7d767c (patch)
treea8cd2d2b7871209f267ddec7e6e686d94914adba /autogen.sh
parent47b5dcb538891caf4e7cd77fe1b3cbc07767f85b (diff)
downloadirssi-a809cecda81bfc2c630eb2a55a25cf72ef7d767c.zip
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
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 418b124d..d575b146 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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..."