3 if [ "$1" == "" -o "$2" == "" ]; then
4 echo "Syntax: $0 <target> <checkout> [<output-dir>]"
7 IFS='-' read distro version bits <<< $1
13 if [ "$bits" == "32" ]; then
15 elif [ "$bits" == "64" ]; then
18 echo "Unrecognised bit depth $bits"
22 nohup vboxheadless --startvm fedora-22-$bits &
24 ssh -p $port carl@localhost "rm -rf fedora-*"
25 ssh -p $port carl@localhost cdist -p dcpomatic -c $checkout -t host package
26 if [ "$output" != "" ]; then
27 scp -P $port carl@localhost:fedora-22-$bits/* $output/
29 ssh -p $port carl@localhost "sudo /sbin/poweroff"