1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /bin/bash
if [ "$(uname -s)" != 'Darwin' ]; then
buildid="$(( hostname; id -u; pwd ) | openssl sha1 | sed 's@^.*= *@@')"
workdir="/tmp/work-kitcreator-${buildid}"
rsync -aq --delete -e ssh . powermacg5.vpn.oc9.org:${workdir}/
(
newArgv=("$@"); declare -p newArgv
declare -p workdir
export
cat << \_EOF_
cd "${workdir}" || exit 1
./kitcreator "${newArgv[@]}"
exit "$?"
_EOF_
) | ssh powermacg5.vpn.oc9.org bash -s || exit "$?"
ssh powermacg5.vpn.oc9.org "workdir='${workdir}'; "'cd "${workdir}" && tar -cf - tclkit-* libtclkit* 2>/dev/null' | tar -xf -
fi
|
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/bash
if [ "$(uname -s)" != 'Darwin' ]; then
buildid="$(( hostname; id -u; pwd ) | openssl sha1 | sed 's@^.*= *@@')"
workdir="/tmp/work-kitcreator-${buildid}"
rsync -aq --delete -e ssh . powermacg5.vpn.oc9.org:${workdir}/
(
newArgv=("$@"); declare -p newArgv
declare -p workdir
export
cat << \_EOF_
cd "${workdir}" || exit 1
export PATH="${PATH}:/usr/local/bin:/usr/bin"
./kitcreator "${newArgv[@]}"
exit "$?"
_EOF_
) | ssh powermacg5.vpn.oc9.org bash -s || exit "$?"
ssh powermacg5.vpn.oc9.org "workdir='${workdir}'; "'cd "${workdir}" && tar -cf - tclkit-* libtclkit* 2>/dev/null' | tar -xf -
fi
|