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 contents=$sshcmd 'ls -1 ~/.cache/kiss/bin/'
39 pkg=$(echo $contents | sort | grep -m 1 "$2")
40 rsync -azre "ssh -p $sshcmd" "$user"@"$host":/home/"$user"/.cache/kiss/bin/"$pkg" \
44 port=${KISS_SERV_PORT:-22}
45 host=${KISS_SERV_HOST:-localhost}
46 user=${KISS_SERV_USER:-$(whoami)}
47 sshcmd="ssh -p $port $user@$host"
49 while [ "$1" != "" ]; do
65 parse_err "ERROR: unknown option $1 \n" usage
70 parse_err "ERROR: no command given\n" usage