From 476a4c7bc496882393ed6f89251def21db17a68c Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 18 Jun 2008 11:24:54 -0700 Subject: [PATCH] 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. --- scripts/CREATE_VERSION.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/CREATE_VERSION.sh diff --git a/scripts/CREATE_VERSION.sh b/scripts/CREATE_VERSION.sh new file mode 100644 index 000000000..2cbec4707 --- /dev/null +++ b/scripts/CREATE_VERSION.sh @@ -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