Changeset f287f04 for configure


Ignore:
Timestamp:
2014-06-26T08:07:11Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
3e7a722
Parents:
4e4fa93
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r4e4fa93 rf287f04  
    541541fi
    542542
     543REAL_BITLBEE_VERSION=`grep '^#define BITLBEE_VERSION ' $srcdir/bitlbee.h | sed 's/.*\"\(.*\)\".*/\1/'`
    543544echo
    544545if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
     
    551552        rev=`bzr revno`
    552553        echo 'Using bzr revision #'$rev' as version number'
    553         BITLBEE_VERSION=\"bzr$nick-$rev\"
     554        BITLBEE_VERSION=$REAL_BITLBEE_VERSION-bzr$nick-$rev
    554555fi
    555556
     
    557558        echo 'Spoofing version number: '$BITLBEE_VERSION
    558559        echo '#undef BITLBEE_VERSION' >> config.h
    559         echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h
    560         echo
     560        echo '#define BITLBEE_VERSION "'$BITLBEE_VERSION'"' >> config.h
     561        echo
     562else
     563        # for pkg-config
     564        BITLBEE_VERSION=$REAL_BITLBEE_VERSION
    561565fi
    562566
Note: See TracChangeset for help on using the changeset viewer.