diff options
author | dequis <dx@dxzone.com.ar> | 2014-06-26 05:07:11 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2014-06-26 05:07:11 -0300 |
commit | f287f0424a983b1f542aa2cf95ecb44810dbcfb3 (patch) | |
tree | df5b4efa7811f8f5b15f38c94c5f280685dfd84f | |
parent | 4e4fa932b450eae70e102abe8f2daeffe60e4614 (diff) |
Fix version in pkg-config file, also change bzr version format slightly
Old bzr version format: bzr-1234
New bzr version format: 3.2.1-bzr-1234
Version spoofing with the BITLBEE_VERSION also changed slightly - it
does not need quotes around the version number anymore for it to compile
correctly.
-rwxr-xr-x | configure | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -540,6 +540,7 @@ if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; th echo 'Install xmlto if you want online help to work.' fi +REAL_BITLBEE_VERSION=`grep '^#define BITLBEE_VERSION ' $srcdir/bitlbee.h | sed 's/.*\"\(.*\)\".*/\1/'` echo if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then nick=`bzr nick` @@ -550,14 +551,17 @@ if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; th fi rev=`bzr revno` echo 'Using bzr revision #'$rev' as version number' - BITLBEE_VERSION=\"bzr$nick-$rev\" + BITLBEE_VERSION=$REAL_BITLBEE_VERSION-bzr$nick-$rev fi if [ -n "$BITLBEE_VERSION" ]; then echo 'Spoofing version number: '$BITLBEE_VERSION echo '#undef BITLBEE_VERSION' >> config.h - echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h + echo '#define BITLBEE_VERSION "'$BITLBEE_VERSION'"' >> config.h echo +else + # for pkg-config + BITLBEE_VERSION=$REAL_BITLBEE_VERSION fi if ! make helloworld > /dev/null 2>&1; then |