blob: eadb6a4e690b279ebf14d7267f1a70b689c80caa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
set -uex
SUBDIR=""
PRIVATE=0
VERBOSITY=0
# apars.add_argument('-M', '--multibuild',
# help='Build the specified multibuild package')
# apars.add_argument('-v', '--verbose', action='count',
# help="Print quilt's stdout.")
while getopts ":M:v" opt; do
case $opt in
M)
BUILD="${OPTARG}"
;;
v)
((VERBOSITY++))
;;
\?)
echo "Invalid option: -$OPTARG"
exit 1
;;
:)
echo "Option -$OPTARG requires an argument."
exit 1
;;
esac
done
shift $(($OPTIND - 1))
REMAINDER=($@)
echo "Length of the remainder is ${#REMAINDER}"
|