contrib/packagelib.sh
branchstable
changeset 29641 13f90dde8f8c
parent 26833 6474b64045fb
child 32777 9dccaff02ad5
equal deleted inserted replaced
29640:17b3309bfdff 29641:13f90dde8f8c
     6 #
     6 #
     7 # distance: the distance from the nearest tag, or empty if built from a tag
     7 # distance: the distance from the nearest tag, or empty if built from a tag
     8 #
     8 #
     9 # node: the node|short hg was built from, or empty if built from a tag
     9 # node: the node|short hg was built from, or empty if built from a tag
    10 gethgversion() {
    10 gethgversion() {
    11     make clean
    11     make cleanbutpackages
    12     make local || make local PURE=--pure
    12     make local || make local PURE=--pure
    13     HG="$PWD/hg"
    13     HG="$PWD/hg"
    14 
    14 
    15     $HG version > /dev/null || { echo 'abort: hg version failed!'; exit 1 ; }
    15     $HG version > /dev/null || { echo 'abort: hg version failed!'; exit 1 ; }
    16 
    16