Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1cef55f r09bd226  
    7979                branch=$(cd $srcdir; git rev-parse --abbrev-ref HEAD)
    8080
    81                 search='\(.*\)-\([0-9]*\)-\(g[0-9a-f]*\)'
     81                search="(.+)-([0-9]+)-(g[0-9a-f]+)"
    8282                replace="\1+$timestamp+$branch+\2-\3-git"
    8383
    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 "s#$search#$replace#")
    90 
    91                 unset timestamp branch search replace describe
     84                BITLBEE_VERSION=$(cd $srcdir; git describe --long --tags | sed -r "s/$search/$replace/")
     85
     86                unset timestamp branch search replace
    9287        fi
    9388}
     
    685680fi
    686681
    687 if [ -z "$PYTHON" ]; then
    688         PYTHON=python
    689 fi
    690 
    691682if [ "$doc" = "1" ]; then
    692683        # check this here just in case someone tries to install it in python2.4...
    693         if ! $PYTHON -m xml.etree.ElementTree > /dev/null 2>&1; then
     684        if ! python -m xml.etree.ElementTree > /dev/null 2>&1; then
    694685                echo
    695686                echo 'ERROR: Python (>=2.5 or 3.x) is required to generate docs'
    696                 echo "(Use the PYTHON environment variable if it's in a weird location)"
    697687                exit 1
    698688        fi
    699689        echo "DOC=1" >> Makefile.settings
    700         echo "PYTHON=$PYTHON" >> Makefile.settings
    701690fi
    702691
Note: See TracChangeset for help on using the changeset viewer.