diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-26 01:39:11 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-26 01:39:11 -0400 |
| commit | 4e31757f1467b36034e1dcef10d78533ff302d57 (patch) | |
| tree | 1cc9e0ec4f450c7fa33ced1b0e39a3355fedd636 /include/version.sh | |
| parent | 6dc3af5db41ecb24669b259c776c51964539d531 (diff) | |
| parent | c7cb8897b400f5df31d0ae12dcce892a2b0d1590 (diff) | |
Merge branch '1.9' of ssh://anope.git.sf.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'include/version.sh')
| -rw-r--r-- | include/version.sh | 63 |
1 files changed, 0 insertions, 63 deletions
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 <version.log> <version.h>" - 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 <<EOF -/* Version information for Services. - * - * (C) 2003-2010 Anope Team - * Contact us at team@anope.org - * - * Please read COPYING and CREDITS for further details. - * - * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * - * This file is auto-generated by version.sh - * - */ - - #ifndef VERSION_H - #define VERSION_H - -#define VERSION_MAJOR $VERSION_MAJOR -#define VERSION_MINOR $VERSION_MINOR -#define VERSION_PATCH $VERSION_PATCH -#define VERSION_EXTRA "$VERSION_EXTRA" -#define VERSION_BUILD $VERSION_BUILD - -#define BUILD "$BUILD" -#define VERSION_STRING "$VERSION" -#define VERSION_STRING_DOTTED "$VERSIONDOTTED" - -#endif - -EOF - |
