summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
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..."