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 /Config | |
| 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 'Config')
| -rwxr-xr-x | Config | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 "" |
