Changes in configure [1cef55f:70ec7ab]
Legend:
- Unmodified
- Added
- Removed
-
configure
r1cef55f r70ec7ab 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" ]; then70 # environment variable already set to something to spoof it71 # don't replace it with the git stuff72 return73 fi74 75 68 BITLBEE_VERSION=$REAL_BITLBEE_VERSION 76 69 … … 79 72 branch=$(cd $srcdir; git rev-parse --abbrev-ref HEAD) 80 73 81 search= '\(.*\)-\([0-9]*\)-\(g[0-9a-f]*\)'74 search="(.+)-([0-9]+)-(g[0-9a-f]+)" 82 75 replace="\1+$timestamp+$branch+\2-\3-git" 83 76 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 77 BITLBEE_VERSION=$(cd $srcdir; git describe --long --tags | sed -r "s/$search/$replace/") 78 79 unset timestamp branch search replace 92 80 fi 93 81 } … … 685 673 fi 686 674 687 if [ -z "$PYTHON" ]; then688 PYTHON=python689 fi690 691 675 if [ "$doc" = "1" ]; 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 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 694 680 echo 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 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 701 696 fi 702 697
Note: See TracChangeset
for help on using the changeset viewer.