X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fvupdateworld;h=7e4cd17c0a6c5c38eba74de029e0fbbf25202ace;hb=a741f6faf2baae1e823d334012f6a09e6a1bda51;hp=f8d24b975024939d6328c94fb9bf43485f79138d;hpb=3b34449070c0846fdc49436d1edd5916512f1644;p=util-vserver.git diff --git a/scripts/vupdateworld b/scripts/vupdateworld index f8d24b9..7e4cd17 100755 --- a/scripts/vupdateworld +++ b/scripts/vupdateworld @@ -1,5 +1,5 @@ #!/bin/bash -# $Id: vupdateworld 2363 2006-11-03 14:36:23Z hollow $ +# $Id: vupdateworld 2486 2007-02-05 18:08:17Z hollow $ # Copyright (C) 2006 Benedikt Boehm # @@ -64,10 +64,20 @@ while true; do shift done +declare -a vserver_names + +while [ $# -gt 0 ]; do + case "$1" in + (--) shift; break;; + (*) vserver_names=( "${vserver_names[@]}" "$1" );; + esac + shift +done + VSOMETHING_TITLE=vemerge VSOMETHING_PKGMGMT=1 export VSOMETHING_TITLE VSOMETHING_PKGMGMT test ${#vsomething_opts[@]} -eq 0 || vsomething_opts=( "${vsomething_opts[@]}" -- ) -exec $_VSOMETHING "${send_through[@]}" emerge "${vsomething_opts[@]}" --update --deep --newuse "$@" +exec $_VSOMETHING "${send_through[@]}" emerge "${vsomething_opts[@]}" "${vserver_names[@]}" -- world --update --deep --newuse "$@"