summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-10-06 13:44:03 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-10-06 13:44:03 +0000
commit2e582f5a617ed7a4faaafa8930ae7291146a4543 (patch)
tree16c123d4f281e000d3a780bf0d0ae560f3cb6731 /scripts
parent17d191b4990aa182c7e2c9daa53e513e3ebc045f (diff)
GUDHIConfig.cmake and GUDHIVersion.cmake generation
generate_version.sh modification to take into account these new files git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@830 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 54d3d4f963fb29c9a142be1c28458ce05215ec79
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