From 3291f612c408e68aaf901f1f5d9eb1c85a1b7d97 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 3 Jan 2014 17:35:14 +0000 Subject: [PATCH] build the MKWS from GIT repo in a sandbox and run full tests --- tools/bin/mkws-bootstrap.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 tools/bin/mkws-bootstrap.sh diff --git a/tools/bin/mkws-bootstrap.sh b/tools/bin/mkws-bootstrap.sh new file mode 100755 index 0000000..16575ff --- /dev/null +++ b/tools/bin/mkws-bootstrap.sh @@ -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 + -- 1.7.10.4