diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-08 19:40:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-08 19:40:33 +0000 |
| commit | 4151c7c9fa048421189895472328b88589c9b645 (patch) | |
| tree | 7f8326106e091aa3712d00a582804192c330547f | |
| parent | 731dfb6c3d741e282d6d2577db3329b3833abec3 (diff) | |
More vmbuild fixes.
| -rwxr-xr-x | vmbuild | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -6,19 +6,22 @@ if [ "$1" == "" -o "$2" == "" ]; then exit 1 fi -IFS='-' read distro version bits <<< $1 +target=$1 + +IFS='-' read distro version bits <<< $target checkout=$2 output=$3 -if [ "$bits" == "32" ]; then - port=2000 -elif [ "$bits" == "64" ]; then - port=2001 -else +case $target in +fedora-22-32) port=2000;; +fedora-22-64) port=2001;; +fedora-23-32) port=2002;; +fedora-23-64) port=2003;; +*) echo "Unrecognised bit depth $bits" exit 1 -fi +esac nohup vboxheadless --startvm $target & vbox=$! |
