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 status [package] get current remote status of a package
14 get [package] receive a built package
17 Done via environment variables
19 $KISS_SERV_HOST remote host to connect to
20 (defaults to localhost)
21 $KISS_SERV_USER remote host to connect to
22 (defaults to $(whoami))
23 $KISS_SERV_PORT remote port to connect to
34 $sshcmd kiss serv $1 $2
39 pkg=$($sshcmd 'ls -1 ~/.cache/kiss/bin/' | sort | grep -m 1 "$2")
40 rsync -azre "ssh -p $port" "$user@$host":/home/"$user"/.cache/kiss/bin/"$pkg" \
42 echo "fetched $pkg from $host"
46 port=${KISS_SERV_PORT:-22}
47 host=${KISS_SERV_HOST:-localhost}
48 user=${KISS_SERV_USER:-$(whoami)}
49 sshcmd="ssh -p $port $user@$host env KISS_PATH=$KISS_PATH"
51 while [ "$1" != "" ]; do
64 parse_err "ERROR: unknown option $1 \n" usage
69 parse_err "ERROR: no command given\n" usage