build the MKWS from GIT repo in a sandbox and run full tests
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 3 Jan 2014 17:35:14 +0000 (17:35 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 3 Jan 2014 17:35:14 +0000 (17:35 +0000)
tools/bin/mkws-bootstrap.sh [new file with mode: 0755]

diff --git a/tools/bin/mkws-bootstrap.sh b/tools/bin/mkws-bootstrap.sh
new file mode 100755 (executable)
index 0000000..16575ff
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Copyright (c) 2010-2013 by Index Data ApS. http://www.indexdata.com
+#
+# mkws-bootstrap.sh - build the MKWS from GIT repo in a sandbox and run full tests
+#
+
+# fail on error
+set -e
+
+dir=$(mktemp -d -t mkws-bootstrap.XXXXXXXX)
+cd $dir
+
+: ${debug=""}
+
+git clone -q ssh://git.indexdata.com:222/home/git/private/mkws.git
+cd mkws
+
+test -n "$debug" && echo "start bootstraping in $dir"
+if make pz2api-git-checkout check check-js > mkws.log 2>&1; then
+    test -n "$debug" && echo "Ok"
+    test -z "$debug" && rm -rf $dir
+    exit 0
+else
+    echo "Failure, see `pwd`/mkws.log"
+    exit 1
+fi
+