mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +00:00
13 lines
318 B
Bash
13 lines
318 B
Bash
|
#!/bin/bash
|
||
|
MY_PATH="`dirname \"$0\"`"
|
||
|
if [ ! -f "$MY_PATH/ReleaseMode" ]
|
||
|
then
|
||
|
echo "Skipping build number update"
|
||
|
exit;
|
||
|
fi
|
||
|
echo "Updating build number"
|
||
|
number=`cat $MY_PATH/build_number`
|
||
|
let number++
|
||
|
echo "$number" > $MY_PATH/build_number
|
||
|
echo "const int build_number = ""$number;" | tee $MY_PATH/../build_number.h
|