From 25a9e070e85cf2d8d007b3fb3b221d91ec079f3b Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sat, 28 Jan 2006 02:25:22 +0000 Subject: makeworld sudo support --- scripts/makeworld | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/makeworld b/scripts/makeworld index 7d4c762c..34e4a43c 100755 --- a/scripts/makeworld +++ b/scripts/makeworld @@ -35,6 +35,7 @@ usage() { echo " -h, --help This help" echo " -r, --rmdeps Remove installed dependencies after a successful build" echo " -s, --syncdeps Install missing dependencies with pacman" + echo " -S, --sudosync Install missing dependencies with pacman and sudo" echo echo " where is one or more directory names under the ABS root" echo " eg: makeworld -c /packages base lib editors" @@ -53,6 +54,7 @@ for arg in $*; do --clean) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;; --install) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;; --syncdeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -s" ;; + --sudosync) MAKEPKG_OPTS="$MAKEPKG_OPTS -S" ;; --builddeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -b" ;; --nodeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -d" ;; --force) MAKEPKG_OPTS="$MAKEPKG_OPTS -f" ;; @@ -66,11 +68,12 @@ for arg in $*; do exit 1 ;; -*) - while getopts "chisbdfr-" opt; do + while getopts "chisSbdfr-" opt; do case $opt in c) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;; i) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;; s) MAKEPKG_OPTS="$MAKEPKG_OPTS -s" ;; + S) MAKEPKG_OPTS="$MAKEPKG_OPTS -S" ;; b) MAKEPKG_OPTS="$MAKEPKG_OPTS -b" ;; d) MAKEPKG_OPTS="$MAKEPKG_OPTS -d" ;; f) MAKEPKG_OPTS="$MAKEPKG_OPTS -f" ;; -- cgit v1.2.3-24-g4f1b