diff options
author | Judd Vinet <judd@archlinux.org> | 2006-01-28 03:25:22 +0100 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-01-28 03:25:22 +0100 |
commit | 25a9e070e85cf2d8d007b3fb3b221d91ec079f3b (patch) | |
tree | 2c30def5b207fa0f9082dd52de635dac6170c265 | |
parent | f6d97da70dfde16f2e4d5e582c7b3a5116a47860 (diff) | |
download | pacman-25a9e070e85cf2d8d007b3fb3b221d91ec079f3b.tar.gz pacman-25a9e070e85cf2d8d007b3fb3b221d91ec079f3b.tar.xz |
makeworld sudo support
-rwxr-xr-x | scripts/makeworld | 5 |
1 files changed, 4 insertions, 1 deletions
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 <category> 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" ;; |