Remove old build_number.h and infrastructure now that it's abandoned.

This commit is contained in:
sawinglogz 2020-01-16 16:07:55 -05:00
parent 768f32821a
commit e125e79d00
3 changed files with 0 additions and 33 deletions

View File

@ -1 +0,0 @@
const int build_number = 1;

View File

@ -373,7 +373,6 @@ HEADERS += \
SleepLib/journal.h \
SleepLib/progressdialog.h \
SleepLib/loader_plugins/cms50f37_loader.h \
build_number.h \
profileselector.h \
SleepLib/appsettings.h \
SleepLib/loader_plugins/edfparser.h \

View File

@ -1,31 +0,0 @@
#!/bin/bash
MY_PATH="`dirname \"$0\"`"
if [ -f "$MY_PATH/build_number" ]
then
number=`cat $MY_PATH/build_number`
else
number=0
fi
if [ ! -f $MY_PATH/../build_number.h ]
then
# This is needed to build, so make sure it's available
echo "const int build_number = ""$number;" | tee $MY_PATH/../build_number.h
fi
if [ ! -f "$MY_PATH/ReleaseManager" ]
then
# Script only needs running by Release Managers
exit;
fi
if [ "$1" == "release" ]
then
echo "Updating build number"
let number++
echo "$number" > $MY_PATH/build_number
echo "const int build_number = ""$number;" | tee $MY_PATH/../build_number.h
else
echo "Skipping build number update"
fi