mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
version in setversion-sh
This commit is contained in:
parent
c691a9040c
commit
c2007f753a
@ -1,7 +1,8 @@
|
||||
#!/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/"`
|
||||
#export VERNUM=`grep "#define VERNUM " hyper.cpp | sed "s/#define VERNUM //" | sed "s/^\(.\)\(.\)\(.\)\(.\)$/\1.\2.\4.\3/"`
|
||||
VERNUM=9,4,0,3
|
||||
#VERNUM=8.1.7.0
|
||||
#echo $VERNUM
|
||||
sed "s/\"ProductVersion\", \"\(.*\)\"/\"ProductVersion\", \"$VER\"/" -i hyper.rc
|
||||
|
Loading…
Reference in New Issue
Block a user