#!/bin/bash syntax() { echo "usage: $0 { --help | -? | -h | platform | option | switch }+ " echo "platform: all | cygwin | linux | macosx | mingw | mingw32 | msvc " echo "switch: --32 | --64 | --2015 | --2017 --publish | --verbose | --static | --status" echo "option: --branch x | --server x | --user x" } announce() { if [ "$status" != "1" ]; then echo ++++++++++++++++++++++++++++++++ echo $* echo ++++++++++++++++++++++++++++++++ fi } bomb() { echo "*** $1 requires an argument ***" >&2 exit 1 } unixBuild() { announce $1 $2 if [ "$status" == "1" ]; then ! ssh $1 ${command} <&2; help=1; ;; esac done if [ $help == 1 ]; then syntax; exit 0; fi if [ "$all" == "1" ]; then cygwin=1; linux=1; macosx=1; mingw=1; msvc=1; b64=1; b32=1; fi if [ "$b64" == "0" -a "$b32" == "0" ]; then b64=1; fi ## # begin builds if [ $linux == 1 ]; then command='' cd=/home/rmills/gnu/github/exiv2/ unixBuild ${user}@${server}-ubuntu Linux fi if [ $macosx == 1 ]; then cd=/Users/rmills/gnu/github/exiv2/ command='' unixBuild ${user}@${server} MacOSX fi if [ $mingw == 1 ]; then if [ $b64 == 1 ]; then command='msys64' cd=/home/rmills/gnu/github/exiv2/ unixBuild ${user}@${server}-w7 MinGW/64 fi if [ $b32 == 1 ]; then command='msys32' cd=/home/rmills/gnu/github/exiv2/ unixBuild ${user}@${server}-w7 MinGW/32 fi fi if [ $cygwin == 1 ]; then cd=/home/rmills/gnu/github/exiv2/ command='c:\\cygwin64\\bin\\bash.exe' unixBuild ${user}@${server}-w7 Cygwin fi if [ $msvc == 1 ]; then command='' msvcBuild ${user}@${server}-w7 fi # That's all Folks ##