From e125e79d00bfb64d954587fad27a0856208f9469 Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Thu, 16 Jan 2020 16:07:55 -0500 Subject: [PATCH] Remove old build_number.h and infrastructure now that it's abandoned. --- oscar/build_number.h | 1 - oscar/oscar.pro | 1 - oscar/scripts/inc_build.sh | 31 ------------------------------- 3 files changed, 33 deletions(-) delete mode 100644 oscar/build_number.h delete mode 100755 oscar/scripts/inc_build.sh diff --git a/oscar/build_number.h b/oscar/build_number.h deleted file mode 100644 index 4efaa269..00000000 --- a/oscar/build_number.h +++ /dev/null @@ -1 +0,0 @@ -const int build_number = 1; diff --git a/oscar/oscar.pro b/oscar/oscar.pro index 39cddc0d..251d6977 100644 --- a/oscar/oscar.pro +++ b/oscar/oscar.pro @@ -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 \ diff --git a/oscar/scripts/inc_build.sh b/oscar/scripts/inc_build.sh deleted file mode 100755 index 9f8e6caf..00000000 --- a/oscar/scripts/inc_build.sh +++ /dev/null @@ -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