Add guards in CREATE_VERSION script.

This patch adds the same guards that the other two scripts
create for the version_tag.h file.
This commit is contained in:
Cary R 2009-03-24 10:57:15 -07:00 committed by Stephen Williams
parent 2a53255445
commit 809044cbf8
1 changed files with 3 additions and 1 deletions

View File

@ -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