1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

makeworld sudo support

This commit is contained in:
Judd Vinet 2006-01-28 02:25:22 +00:00
parent f6d97da70d
commit 25a9e070e8

View File

@ -35,6 +35,7 @@ usage() {
echo " -h, --help This help" echo " -h, --help This help"
echo " -r, --rmdeps Remove installed dependencies after a successful build" echo " -r, --rmdeps Remove installed dependencies after a successful build"
echo " -s, --syncdeps Install missing dependencies with pacman" echo " -s, --syncdeps Install missing dependencies with pacman"
echo " -S, --sudosync Install missing dependencies with pacman and sudo"
echo echo
echo " where <category> is one or more directory names under the ABS root" echo " where <category> is one or more directory names under the ABS root"
echo " eg: makeworld -c /packages base lib editors" echo " eg: makeworld -c /packages base lib editors"
@ -53,6 +54,7 @@ for arg in $*; do
--clean) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;; --clean) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;;
--install) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;; --install) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;;
--syncdeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -s" ;; --syncdeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -s" ;;
--sudosync) MAKEPKG_OPTS="$MAKEPKG_OPTS -S" ;;
--builddeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -b" ;; --builddeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -b" ;;
--nodeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -d" ;; --nodeps) MAKEPKG_OPTS="$MAKEPKG_OPTS -d" ;;
--force) MAKEPKG_OPTS="$MAKEPKG_OPTS -f" ;; --force) MAKEPKG_OPTS="$MAKEPKG_OPTS -f" ;;
@ -66,11 +68,12 @@ for arg in $*; do
exit 1 exit 1
;; ;;
-*) -*)
while getopts "chisbdfr-" opt; do while getopts "chisSbdfr-" opt; do
case $opt in case $opt in
c) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;; c) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;;
i) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;; i) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;;
s) MAKEPKG_OPTS="$MAKEPKG_OPTS -s" ;; s) MAKEPKG_OPTS="$MAKEPKG_OPTS -s" ;;
S) MAKEPKG_OPTS="$MAKEPKG_OPTS -S" ;;
b) MAKEPKG_OPTS="$MAKEPKG_OPTS -b" ;; b) MAKEPKG_OPTS="$MAKEPKG_OPTS -b" ;;
d) MAKEPKG_OPTS="$MAKEPKG_OPTS -d" ;; d) MAKEPKG_OPTS="$MAKEPKG_OPTS -d" ;;
f) MAKEPKG_OPTS="$MAKEPKG_OPTS -f" ;; f) MAKEPKG_OPTS="$MAKEPKG_OPTS -f" ;;