summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_version.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/generate_version.sh b/scripts/generate_version.sh
index e7575282..b1657754 100755
--- a/scripts/generate_version.sh
+++ b/scripts/generate_version.sh
@@ -4,12 +4,13 @@
#usage bash generate_version.sh -f DIR : generate even if svn is empty and save library in dir
#
# 23/06/2015 - Remove source, add biblio, and doc
+# 06/10/2015 - Replace static Version.txt with generated GUDHIVersion.cmake file
# VERSION CHECK
ROOT_DIR=..
-VERSION_FILE="$ROOT_DIR/Version.txt"
+VERSION_FILE="$ROOT_DIR/GUDHIVersion.cmake"
if [ ! -f $VERSION_FILE ]; then
- echo "File not found! : $VERSION_FILE"
+ echo "File not found! : $VERSION_FILE - Please launch cmake first to generate file"
exit 1
fi
@@ -44,6 +45,7 @@ mkdir "$VERSION_DIR"
# TOP LEVEL FILE COPY
cp $VERSION_FILE $VERSION_DIR
+cp $ROOT_DIR/CMakeGUDHIVersion.txt $VERSION_DIR
cp $ROOT_DIR/README $VERSION_DIR
cp $ROOT_DIR/Conventions.txt $VERSION_DIR
cp $ROOT_DIR/COPYING $VERSION_DIR