diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2015-01-23 16:13:56 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-01-23 16:13:56 +0000 |
commit | 2aa424b3fe48eeb962e7dcd69f4768ad38463df8 (patch) | |
tree | c551a8ba03316ac01bdc3f782421f07e2384570f /acinclude.m4 | |
parent | Merge branch 'bug/changelog' (diff) | |
parent | Update to 0.5.3+gitYYYYMMDD (generate from ChangeLog) (diff) | |
download | w3m-2aa424b3fe48eeb962e7dcd69f4768ad38463df8.tar.gz w3m-2aa424b3fe48eeb962e7dcd69f4768ad38463df8.zip |
Merge branch 'feature/debian-version'
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 675cabe..60705f4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -6,7 +6,8 @@ dnl w3m autoconf macros AC_DEFUN([AC_W3M_VERSION], [AC_SUBST(CURRENT_VERSION) cvsver=`$AWK '\$[1] ~ /Id:/ { print \$[3]}' $srcdir/ChangeLog` - sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c + ymdver=`sed -e 's/ .*//;s/-//g;q' $srcdir/ChangeLog` + sed -e 's/define CURRENT_VERSION "\(.*\)YYYYMMDD/define CURRENT_VERSION "\1'$ymdver'/;s/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`]) # # ---------------------------------------------------------------- |