From 72c1a888ebd73977182432b9f0c9bd1a579a6adc Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 11 Mar 2013 14:19:30 +0530 Subject: [PATCH] appliance: Fix build.sh to build 64bit systemvm appliance as well TODO: Make it general like boxer.sh in tools/devcloud/src Signed-off-by: Rohit Yadav --- tools/appliance/README.md | 4 ++-- tools/appliance/build.sh | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/appliance/README.md b/tools/appliance/README.md index 2f6f656212d..559f79c6adb 100644 --- a/tools/appliance/README.md +++ b/tools/appliance/README.md @@ -43,7 +43,7 @@ Note, gem may require gcc-4.2, make sure link exists: Just run build.sh, it will export archived appliances for KVM, Xen, VMWare and HyperV in `dist`: - sh build.sh + sh build.sh [systemvmtemplate|systemvmtemplate64] # Building SystemVM template appliance manually @@ -51,7 +51,7 @@ List available appliances one can build: veewee vbox list -Modify scripts in definitions/systemvmtemplate/ as per needs. +Modify scripts in definitions/*appliance*/ as per needs. Build systemvm template appliance: veewee vbox build 'systemvmtemplate' diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh index 69e15d88ca7..74307a06fc3 100644 --- a/tools/appliance/build.sh +++ b/tools/appliance/build.sh @@ -18,7 +18,13 @@ set -x -appliance="systemvmtemplate" +if [ "$1"!="" ] +then + appliance="$1" +else + appliance="systemvmtemplate" +fi + build_date=`date +%Y-%m-%d` branch="master" rootdir=$PWD