From 853963f7d15b90da817f08f72f95829f491f11ab Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 20 Sep 2005 22:30:40 +0000 Subject: Honour the install only flag in update --- ezjail-admin | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ezjail-admin b/ezjail-admin index 324168f..b6ba4dc 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -126,6 +126,22 @@ list) ;; update) + shift + args=`getopt is: $*` + if [ $? != 0 ]; then + echo 'Usage: ezjail update [-s sourcetree] [-i]'; + exit 1; + fi + + updatejail_installaction=world + + for arg in args; do + case $arg in + -i) updatejail_installaction=installworld; shift;; + -s) ezjail_sourcetree="$2"; shift 2;; + --) shift; break;; + esac + done; if [ ! -d ${ezjail_sourcetree} ]; then echo "Cannot find your copy of the FreeBSD source tree in $ezjail_sourcetree."; exit 1; @@ -133,7 +149,7 @@ update) cd ${ezjail_sourcetree} rm -r ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull} - make world DESTDIR=${ezjail_jailfull} + make ${updatejail_installaction} DESTDIR=${ezjail_jailfull} make distribution DESTDIR=${ezjail_jailfull} cd ${ezjail_jailfull} -- cgit v1.2.3