Changes in configure [1cef55f:09bd226]
Legend:
- Unmodified
- Added
- Removed
-
configure
r1cef55f r09bd226 79 79 branch=$(cd $srcdir; git rev-parse --abbrev-ref HEAD) 80 80 81 search= '\(.*\)-\([0-9]*\)-\(g[0-9a-f]*\)'81 search="(.+)-([0-9]+)-(g[0-9a-f]+)" 82 82 replace="\1+$timestamp+$branch+\2-\3-git" 83 83 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 92 87 fi 93 88 } … … 685 680 fi 686 681 687 if [ -z "$PYTHON" ]; then688 PYTHON=python689 fi690 691 682 if [ "$doc" = "1" ]; then 692 683 # 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; then684 if ! python -m xml.etree.ElementTree > /dev/null 2>&1; then 694 685 echo 695 686 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)"697 687 exit 1 698 688 fi 699 689 echo "DOC=1" >> Makefile.settings 700 echo "PYTHON=$PYTHON" >> Makefile.settings701 690 fi 702 691
Note: See TracChangeset
for help on using the changeset viewer.