2008-06-18 20:24:54 +02:00
|
|
|
#!/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
|
|
|
|
|
#
|
|
|
|
|
|
2008-06-24 17:46:16 +02:00
|
|
|
echo "Building version.h with git describe"
|
2008-06-18 20:24:54 +02:00
|
|
|
tmp=`git describe | sed -e 's;\(.*\);#define VERSION_TAG "\1";'`
|
|
|
|
|
echo "$tmp" > version.h
|