summaryrefslogtreecommitdiffstats
path: root/scripts/makeworld
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2006-01-28 02:25:22 +0000
committerJudd Vinet <judd@archlinux.org>2006-01-28 02:25:22 +0000
commit25a9e070e85cf2d8d007b3fb3b221d91ec079f3b (patch)
tree2c30def5b207fa0f9082dd52de635dac6170c265 /scripts/makeworld
parentf6d97da70dfde16f2e4d5e582c7b3a5116a47860 (diff)
downloadpacman-25a9e070e85cf2d8d007b3fb3b221d91ec079f3b.tar.xz
makeworld sudo support
Diffstat (limited to 'scripts/makeworld')
-rwxr-xr-xscripts/makeworld5
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" ;;