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:
parent
2a53255445
commit
809044cbf8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue