2016-01-03 16:33:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# set the version numbers in hyper.rc automatically
|
|
|
|
export VER=`grep "#define VER " hyper.cpp | sed "s/#define VER \"//" | sed "s/\"//"`
|
2017-03-23 18:43:15 +00:00
|
|
|
#export VERNUM=`grep "#define VERNUM " hyper.cpp | sed "s/#define VERNUM //" | sed "s/^\(.\)\(.\)\(.\)\(.\)$/\1.\2.\4.\3/"`
|
2017-04-14 18:12:23 +00:00
|
|
|
VERNUM=9,4,0,7
|
2016-01-03 16:33:48 +00:00
|
|
|
#VERNUM=8.1.7.0
|
|
|
|
#echo $VERNUM
|
|
|
|
sed "s/\"ProductVersion\", \"\(.*\)\"/\"ProductVersion\", \"$VER\"/" -i hyper.rc
|
|
|
|
sed "s/FILEVERSION \(.*\)$/FILEVERSION $VERNUM/" -i hyper.rc
|
|
|
|
sed "s/PRODUCTVERSION\(.*\)$/PRODUCTVERSION $VERNUM/" -i hyper.rc
|
2016-01-04 18:05:47 +00:00
|
|
|
# Adjust it in configure.ac
|
|
|
|
sed "s/AC_INIT.*/AC_INIT([hyperrogue], [$VER])/" -i configure.ac
|
2016-01-03 16:33:48 +00:00
|
|
|
echo $VER
|