Changeset 041777e


Ignore:
Timestamp:
2015-05-06T10:32:54Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
70e68cf, b71f599
Parents:
5ca1416
Message:

configure: fix spoofed BITLBEE_VERSION env variable handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r5ca1416 r041777e  
    6666get_version() {
    6767        REAL_BITLBEE_VERSION=$(grep '^#define BITLBEE_VERSION ' $srcdir/bitlbee.h | sed 's/.*\"\(.*\)\".*/\1/')
     68
     69        if [ -n "$BITLBEE_VERSION" ]; then
     70                # environment variable already set to something to spoof it
     71                # don't replace it with the git stuff
     72                return
     73        fi
     74
    6875        BITLBEE_VERSION=$REAL_BITLBEE_VERSION
    6976
Note: See TracChangeset for help on using the changeset viewer.