Changeset e28c449


Ignore:
Timestamp:
2015-05-31T04:53:01Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
c984ee3
Parents:
2ca933c
Message:

configure: handle 'git describe' failures when no tags are reachable

Just make up some fake describe output based on the real version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r2ca933c re28c449  
    8282                replace="\1+$timestamp+$branch+\2-\3-git"
    8383
    84                 BITLBEE_VERSION=$(cd $srcdir; git describe --long --tags | sed -r "s#$search#$replace#")
    85 
    86                 unset timestamp branch search replace
     84                describe=$(cd $srcdir; git describe --long --tags 2>/dev/null)
     85                if [ $? -ne 0 ]; then
     86                        describe=${REAL_BITLBEE_VERSION}-0-g$(cd $srcdir; git rev-parse --short HEAD)
     87                fi
     88
     89                BITLBEE_VERSION=$(echo $describe | sed -r "s#$search#$replace#")
     90
     91                unset timestamp branch search replace describe
    8792        fi
    8893}
Note: See TracChangeset for help on using the changeset viewer.