4 if [ "$1" == "" -o "$2" == "" ]; then
5 echo "Syntax: $0 <target> <checkout> [<output-dir>]"
9 IFS='-' read distro version bits <<< $1
14 if [ "$bits" == "32" ]; then
16 elif [ "$bits" == "64" ]; then
19 echo "Unrecognised bit depth $bits"
23 nohup vboxheadless --startvm fedora-22-$bits &
26 ssh -p $port carl@localhost "rm -rf fedora-*"
27 ssh -p $port carl@localhost cdist -p dcpomatic -c $checkout -t host package
28 if [ "$output" != "" ]; then
29 scp -P $port carl@localhost:fedora-22-$bits/* $output/
31 ssh -p $port carl@localhost "sudo /sbin/poweroff"
34 while [[ ( -d /proc/$vbox ) && ( -z `grep zombie /proc/$vbox/status` ) ]]; do