build: initial version detection by make deb/rpm was missing quoting
authormuxator <a.mux@inwind.it>
Wed, 11 Oct 2017 01:37:43 +0200
changeset 34623 baa522889540
parent 34622 b584ed1b225d
child 34624 884855ce5e63
build: initial version detection by make deb/rpm was missing quoting
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`