Update the version number from os.h.

This commit is contained in:
Moritz Bunkus 2004-01-20 21:17:55 +00:00
parent 7636f905bc
commit 7a766d1001

View File

@ -24,8 +24,10 @@ if gcc -v 2>&1 | grep -i mingw > /dev/null 2> /dev/null; then
else else
echo 'Not overwriting Makefile.options.' echo 'Not overwriting Makefile.options.'
fi fi
echo "Creating config.h from config.h.mingw" # Extract the version number from os.h
cp config.h.mingw config.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 ''
echo 'Creating dependencies (calling "make depend")' echo 'Creating dependencies (calling "make depend")'
echo '' echo ''