From 5fdbe86712225d3329853acc195f3dcad1019501 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Fri, 12 Oct 2018 23:23:01 +0100 Subject: [PATCH] Restore rmillsmm buildserver --- contrib/buildserver/build.sh | 121 +++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100755 contrib/buildserver/build.sh diff --git a/contrib/buildserver/build.sh b/contrib/buildserver/build.sh new file mode 100755 index 00000000..48931f88 --- /dev/null +++ b/contrib/buildserver/build.sh @@ -0,0 +1,121 @@ +#!/bin/bash + + +syntaxError() { + echo "usage: $0 [{--help|-?}| {platform}+]" + echo "platform: all | msvc | cygwin | linux | mingw | macosx " + exit 1 +} + +bomb() { + echo "*** $1 requires an argument ***" 1>&2 + exit 1 +} + + +msvc=0 +cygwin=0 +mingw=0 +cygwin=0 +macosx=0 +linux=0 +verbose=0 + +if [ "$#" == "0" ]; then syntaxError; fi + +while [ "$#" != "0" ]; do + case "$1" in + -h|--help|-\?) syntaxError; exit 0 ;; + -v|--verbose) verbose=1 ;; + all) msvc=1; cygwin=1; linux=1; mingw=1; macosx=1 ;; + msvc) msvc=1 ;; + cygwin) cygwin=1 ;; + mingw) mingw=1 ;; + macosx) macosx=1 ;; + linux) linux=1 ;; + *) echo "invalid option: $1" 1>&2; syntaxError; exit 1;; + esac + if [ "$#" != "0" ]; then shift ; fi +done + + +if [ $macosx == 1 ]; then +ssh rmills@rmillsmm <