aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-05-06 07:32:54 -0300
committerdequis <dx@dxzone.com.ar>2015-05-06 07:32:54 -0300
commit041777e0f38dc991967fe7d2684836ac717ce871 (patch)
tree5bf0f7cf5d2025e146322717b25519dd8ccb01ec /configure
parent5ca141685d78cb372acd0e9aded36175cba957a3 (diff)
configure: fix spoofed BITLBEE_VERSION env variable handling
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index cf273237..9306ab8f 100755
--- a/configure
+++ b/configure
@@ -65,6 +65,13 @@ esac
get_version() {
REAL_BITLBEE_VERSION=$(grep '^#define BITLBEE_VERSION ' $srcdir/bitlbee.h | sed 's/.*\"\(.*\)\".*/\1/')
+
+ if [ -n "$BITLBEE_VERSION" ]; then
+ # environment variable already set to something to spoof it
+ # don't replace it with the git stuff
+ return
+ fi
+
BITLBEE_VERSION=$REAL_BITLBEE_VERSION
if [ -d $srcdir/.git ] && type git > /dev/null 2> /dev/null; then