# HG changeset patch # User muxator # Date 1507678663 -7200 # Node ID baa5228895407b31b87238cd3e3df3f59cc34061 # Parent b584ed1b225d53426170791949a46cd04bf358db build: initial version detection by make deb/rpm was missing quoting diff -r b584ed1b225d -r baa522889540 contrib/packagelib.sh --- a/contrib/packagelib.sh Wed Oct 11 01:19:48 2017 +0200 +++ b/contrib/packagelib.sh Wed Oct 11 01:37:43 2017 +0200 @@ -12,9 +12,9 @@ make local || make local PURE=--pure HG="$PWD/hg" - $HG version > /dev/null || { echo 'abort: hg version failed!'; exit 1 ; } + "$HG" version > /dev/null || { echo 'abort: hg version failed!'; exit 1 ; } - hgversion=`LANGUAGE=C $HG version | sed -ne 's/.*(version \(.*\))$/\1/p'` + hgversion=`LANGUAGE=C "$HG" version | sed -ne 's/.*(version \(.*\))$/\1/p'` if echo $hgversion | grep + > /dev/null 2>&1 ; then tmp=`echo $hgversion | cut -d+ -f 2`