From 809044cbf810db68f764194e99dbc00c6a72020c Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 24 Mar 2009 10:57:15 -0700 Subject: [PATCH] Add guards in CREATE_VERSION script. This patch adds the same guards that the other two scripts create for the version_tag.h file. --- scripts/CREATE_VERSION.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/CREATE_VERSION.sh b/scripts/CREATE_VERSION.sh index 77d061a8a..450f21370 100644 --- a/scripts/CREATE_VERSION.sh +++ b/scripts/CREATE_VERSION.sh @@ -10,4 +10,6 @@ echo "Building version_tag.h with git describe" tmp=`git describe | sed -e 's;\(.*\);#define VERSION_TAG "\1";'` -echo "$tmp" > version_tag.h +echo "#ifndef VERSION_TAG" > version_tag.h +echo "$tmp" >> version_tag.h +echo "#endif" >> version_tag.h