From 7a766d100110b6a728c7cc175be093927fe266c7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 20 Jan 2004 21:17:55 +0000 Subject: [PATCH] Update the version number from os.h. --- autogen.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index d2b962874..bd4c2de1b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -24,8 +24,10 @@ if gcc -v 2>&1 | grep -i mingw > /dev/null 2> /dev/null; then else echo 'Not overwriting Makefile.options.' fi - echo "Creating config.h from config.h.mingw" - cp config.h.mingw config.h + # Extract the version number from os.h + VERSION=`grep '# define VERSION' src/common/os.h | sed -e 's;# define VERSION ;;' -e 's;";;g'` + echo "Creating config.h from config.h.mingw (version is $VERSION)" + sed -e 's/#define VERSION.*/#define VERSION "'$VERSION'"/' < config.h.mingw > config.h echo '' echo 'Creating dependencies (calling "make depend")' echo ''