From: Wolfram Schneider Date: Fri, 3 Jan 2014 17:35:14 +0000 (+0000) Subject: build the MKWS from GIT repo in a sandbox and run full tests X-Git-Tag: 1.0.0~1749 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=3291f612c408e68aaf901f1f5d9eb1c85a1b7d97 build the MKWS from GIT repo in a sandbox and run full tests --- 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 +