4 echo 'Usage: kiss send-build [command] [options]
5 build KISS packages on a remote server
8 -h, --help show this help message
11 build [package] initiate a remote build
12 status get current remote status
13 get [package] receive a built package
16 Done via environment variables
18 $KISS_SERV_HOST remote host to connect to
19 (defaults to localhost)
20 $KISS_SERV_USER remote host to connect to
21 (defaults to $(whoami))
22 $KISS_SERV_PORT remote port to connect to
33 $sshcmd kiss serv $1 $2
38 pkg=$($sshcmd 'ls -1 ~/.cache/kiss/bin/' | sort | grep -m 1 "$2")
39 rsync -azre "ssh -p $port" "$user@$host":/home/"$user"/.cache/kiss/bin/"$pkg" \
41 echo "fetched $pkg from $host"
45 port=${KISS_SERV_PORT:-22}
46 host=${KISS_SERV_HOST:-localhost}
47 user=${KISS_SERV_USER:-$(whoami)}
48 sshcmd="ssh -p $port $user@$host env KISS_PATH=$KISS_PATH"
50 while [ "$1" != "" ]; do
63 parse_err "ERROR: unknown option $1 \n" usage
68 parse_err "ERROR: no command given\n" usage