rpmdist.mk, mkspec-wrapper.sh: Use all the required packages, seperated by spaces

This commit is contained in:
Jan Lindemann 2002-07-25 22:00:18 +00:00 committed by Jan Lindemann
commit 609c5b6fb3
2 changed files with 7 additions and 8 deletions

View file

@ -11,9 +11,9 @@ usage()
[ "$1" ] && exit $1
}
set -- `getopt P:T:V:S:N:hR: $*`
set -- `getopt P:T:V:S:N:hR: "$@"`
while [ $1 != -- ]; do
while [ "$1" != -- ]; do
case $1 in
-h)
usage 0;;
@ -30,7 +30,10 @@ case $1 in
NAME="$2"
shift;;
-R)
REQUIRES="$2"
while [ "`echo $2 | cut -c1`" != "-" ]; do
REQUIRES="$REQUIRES $2"
shift
done
shift;;
-P)
PROJECT="$2"