Changes in configure [70ec7ab:1cef55f]
Legend:
- Unmodified
- Added
- Removed
-
configure
r70ec7ab r1cef55f 66 66 get_version() { 67 67 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 68 75 BITLBEE_VERSION=$REAL_BITLBEE_VERSION 69 76 … … 72 79 branch=$(cd $srcdir; git rev-parse --abbrev-ref HEAD) 73 80 74 search= "(.+)-([0-9]+)-(g[0-9a-f]+)"81 search='\(.*\)-\([0-9]*\)-\(g[0-9a-f]*\)' 75 82 replace="\1+$timestamp+$branch+\2-\3-git" 76 83 77 BITLBEE_VERSION=$(cd $srcdir; git describe --long --tags | sed -r "s/$search/$replace/") 78 79 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 "s#$search#$replace#") 90 91 unset timestamp branch search replace describe 80 92 fi 81 93 } … … 673 685 fi 674 686 687 if [ -z "$PYTHON" ]; then 688 PYTHON=python 689 fi 690 675 691 if [ "$doc" = "1" ]; then 676 if [ ! -e doc/user-guide/help.txt ] && \ 677 ! type xmlto > /dev/null 2> /dev/null || \ 678 ! type xsltproc > /dev/null 2> /dev/null 679 then 692 # 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 680 694 echo 681 echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.' 682 echo 'Install xmlto and xsltproc if you want online help to work.' 683 else 684 echo "DOC=1" >> Makefile.settings 685 fi 686 687 if [ "$skype" = "1" -o "$skype" = "plugin" ]; then 688 # skype also needs asciidoc 689 if ! type a2x > /dev/null 2> /dev/null; then 690 echo 691 echo 'WARNING: The skyped man page requires asciidoc. It will not be generated.' 692 else 693 echo "ASCIIDOC=1" >> Makefile.settings 694 fi 695 fi 695 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 exit 1 698 fi 699 echo "DOC=1" >> Makefile.settings 700 echo "PYTHON=$PYTHON" >> Makefile.settings 696 701 fi 697 702
Note: See TracChangeset
for help on using the changeset viewer.