1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 03:33:12 +02:00

Changed the versioning system to use git

This commit is contained in:
Adam
2010-06-25 20:00:21 -04:00
parent cbcead4e89
commit 03fbc7d281
167 changed files with 2981 additions and 542 deletions
+7 -2
View File
@@ -205,8 +205,13 @@ if [ ! "$NO_INTRO" ] ; then
clear
;;
esac
. $SOURCE_DIR/version.log
cat $SOURCE_DIR/.BANNER | sed "s/CURVER/$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH$VERSION_EXTRA/" | sed "s@SOURCE_DIR@$SOURCE_DIR@" | $PAGER
. src/version.sh
if [ -d .git ] ; then
VERSION=`git describe --tags`
echo "#define VERSION_BUILD `echo "$VERSION" | cut -d'-' -f2`" > include/version.h
echo "#define VERSION_EXTRA \"-`echo "$VERSION" | cut -d'-' -f3`$VERSION_EXTRA\"" >> include/version.h
fi
cat $SOURCE_DIR/.BANNER | sed "s/CURVER/$VERSION/" | sed "s@SOURCE_DIR@$SOURCE_DIR@" | $PAGER
echo ""
else
echo ""