mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-03 09:17:02 +00:00
setversion script
This commit is contained in:
parent
2a9f252486
commit
d18f6fb3b4
10
setversion-sh
Normal file
10
setversion-sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# set the version numbers in hyper.rc automatically
|
||||
export VER=`grep "#define VER " hyper.cpp | sed "s/#define VER \"//" | sed "s/\"//"`
|
||||
export VERNUM=`grep "#define VERNUM " hyper.cpp | sed "s/#define VERNUM //" | sed "s/^\(.\)\(.\)\(.\)\(.\)$/\1.\2.\4.\3/"`
|
||||
#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
|
||||
echo $VER
|
Loading…
x
Reference in New Issue
Block a user