aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_version_info.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_version_info.sh')
-rwxr-xr-xscripts/gen_version_info.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gen_version_info.sh b/scripts/gen_version_info.sh
index 8a9e38d..9be81c6 100755
--- a/scripts/gen_version_info.sh
+++ b/scripts/gen_version_info.sh
@@ -3,10 +3,12 @@
# Script to generate the version info of GEMMA and its environment
# in ./src/version.h
-DATE=$(date "+%Y/%m/%d")
+DATE=$(date "+%Y-%m-%d")
YEAR=$(date "+%Y")
+PROFILE=$1
echo // version.h generated by GEMMA $0
echo \#define GEMMA_VERSION \"$(cat ./VERSION)\"
echo \#define GEMMA_DATE \"$DATE\"
echo \#define GEMMA_YEAR \"$YEAR\"
+echo \#define GEMMA_PROFILE \"$PROFILE\"