Add a script to manually build the version.h file.

This script is used to manually build a version.h file.
It is needed when building with MinGW using a cygwin
hosted repository.
This commit is contained in:
Cary R 2008-06-18 11:24:54 -07:00 committed by Stephen Williams
parent ce9fd0147f
commit 476a4c7bc4
1 changed files with 13 additions and 0 deletions

13
scripts/CREATE_VERSION.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# This script manually creates a version.h file.
#
# 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
#
echo "Building verion.h with git describe"
tmp=`git describe | sed -e 's;\(.*\);#define VERSION_TAG "\1";'`
echo "$tmp" > version.h