2008-06-18 11:24:54 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2026-03-18 09:22:46 +01:00
|
|
|
# This script manually creates a version_tag.h file.
|
2008-06-18 11:24:54 -07:00
|
|
|
#
|
|
|
|
|
# It is used when creating a MinGW executable from a Cygwin
|
|
|
|
|
# hosted git repository. It assumes that git is available.
|
|
|
|
|
#
|
|
|
|
|
# sh scripts/CREATE_VERSION.sh
|
|
|
|
|
#
|
|
|
|
|
|
2009-01-06 18:38:29 -08:00
|
|
|
echo "Building version_tag.h with git describe"
|
2008-06-18 11:24:54 -07:00
|
|
|
tmp=`git describe | sed -e 's;\(.*\);#define VERSION_TAG "\1";'`
|
2009-03-24 10:57:15 -07:00
|
|
|
echo "#ifndef VERSION_TAG" > version_tag.h
|
|
|
|
|
echo "$tmp" >> version_tag.h
|
|
|
|
|
echo "#endif" >> version_tag.h
|