##// END OF EJS Templates
gendoc: use real ui in place of stdout...
gendoc: use real ui in place of stdout ui attributes will be required by a help function, so a file object can't be used as a fake ui.

File last commit:

r24972:56c64c91 default
r26412:7e8e3c09 default
Show More
packagelib.sh
19 lines | 619 B | application/x-sh | BashLexer
Augie Fackler
packaging: extract packagelib for common code from builddeb and buildrpm
r24972 gethgversion() {
make clean
make local || make local PURE=--pure
HG="$PWD/hg"
$HG version > /dev/null || { echo 'abort: hg version failed!'; exit 1 ; }
hgversion=`$HG version | sed -ne 's/.*(version \(.*\))$/\1/p'`
if echo $hgversion | grep -- '-' > /dev/null 2>&1; then
# nightly build case, version is like 1.3.1+250-20b91f91f9ca
version=`echo $hgversion | cut -d- -f1`
release=`echo $hgversion | cut -d- -f2 | sed -e 's/+.*//'`
else
# official tag, version is like 1.3.1
version=`echo $hgversion | sed -e 's/+.*//'`
release='0'
fi
}