From 03fbc7d281f5039a97c851970dea3cd8cfaefd64 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 25 Jun 2010 20:00:21 -0400 Subject: Changed the versioning system to use git --- include/version.sh | 63 ------------------------------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 include/version.sh (limited to 'include/version.sh') diff --git a/include/version.sh b/include/version.sh deleted file mode 100644 index a32c34c5a..000000000 --- a/include/version.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/sh -# -# Build version string and increment Services build number. -# - -if [ $# -lt 2 ] ; then - echo "Syntax: $0 " - exit 1 -fi -# Grab version information from the version control file. -CTRL="$1" -if [ -f $CTRL ] ; then - . $CTRL -else - echo "Error: Unable to find control file: $CTRL" - exit 0 -fi - -VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_EXTRA} (${VERSION_BUILD})" -VERSIONDOTTED="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_EXTRA}.${VERSION_BUILD}" - -VERSIONH="$2" -if [ -f $VERSIONH ] ; then - BUILD=`fgrep '#define BUILD' $VERSIONH | cut -f2 -d\"` - BUILD=`expr $BUILD + 1 2>/dev/null` -else - BUILD=1 -fi -if [ ! "$BUILD" ] ; then - BUILD=1 -fi -cat >$VERSIONH <