diff options
| author | DukePyrolator <DukePyrolator@anope.org> | 2010-12-19 08:56:31 +0100 |
|---|---|---|
| committer | DukePyrolator <DukePyrolator@anope.org> | 2010-12-19 08:56:31 +0100 |
| commit | 184e14ea83412489921367614d63a7c24df3827d (patch) | |
| tree | 152c0318684ec36375b55e3553b1f70e8734843e /Config | |
| parent | 02476332ea2f5ab3fd766e0ca9d83d67a9a9f122 (diff) | |
| parent | 21125cf2cb0dc5f80f9f796fe4c222c36ba2fcc4 (diff) | |
Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'Config')
| -rwxr-xr-x | Config | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -168,11 +168,11 @@ if [ ! "$NO_INTRO" ] ; then VERSION=`git describe --tags` VERSION_BUILD=`echo "$VERSION" | cut -d'-' -f2` VERSION_EXTRA=`echo "$VERSION" | cut -d'-' -f3` - if [ "$VERSION_BUILD" == "$VERSION_EXTRA" ] ; then - VERSION_EXTRA="" + # Only do this if we are not on a tag, src/version.sh will be all we need then. + if [ "$VERSION_BUILD" != "$VERSION_EXTRA" ] ; then + echo "#define VERSION_BUILD $VERSION_BUILD" > include/version.h + echo "#define VERSION_EXTRA \"$VERSION_EXTRA\"" >> include/version.h fi - echo "#define VERSION_BUILD $VERSION_BUILD" > include/version.h - echo "#define VERSION_EXTRA \"$VERSION_EXTRA\"" >> include/version.h fi cat $SOURCE_DIR/.BANNER | sed "s/CURVER/$VERSION/" | sed "s@SOURCE_DIR@$SOURCE_DIR@" | $PAGER echo "" |
