[opengtl-commits] [768] check that hg exists

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 768
Author:   cyrille
Date:     2009-07-17 23:29:57 +0200 (Fri, 17 Jul 2009)

Log Message:
-----------
check that hg exists

Modified Paths:
--------------
    trunk/Scripts/replace-opengtl.sh
    trunk/Scripts/replace.sh


Modified: trunk/Scripts/replace-opengtl.sh
===================================================================
--- trunk/Scripts/replace-opengtl.sh	2009-07-17 21:23:15 UTC (rev 767)
+++ trunk/Scripts/replace-opengtl.sh	2009-07-17 21:29:57 UTC (rev 768)
@@ -1,3 +1,5 @@
+type -P hg &>/dev/null || { echo "I require hg but it's not installed.  Aborting." >&2; exit 1; }
+
 cd ..
 rm -rf src
 hg clone http://bitbucket.org/opengtl/opengtl/ src

Modified: trunk/Scripts/replace.sh
===================================================================
--- trunk/Scripts/replace.sh	2009-07-17 21:23:15 UTC (rev 767)
+++ trunk/Scripts/replace.sh	2009-07-17 21:29:57 UTC (rev 768)
@@ -1,3 +1,4 @@
+type -P hg &>/dev/null || { echo "I require hg but it's not installed.  Aborting." >&2; exit 1; }
 cd ..
 rm -rf Scripts
 hg clone http://bitbucket.org/cyrille/gtl-scripts/ Scripts


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/