summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMario Domenech Goulart <mario@ossystems.com.br>2014-04-25 10:38:56 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2014-04-25 11:30:12 -0300
commitaf65c73e4d809dc9eda4cbe2a01160597131eeca (patch)
tree4005befc2c2c9128f06364d673b629795b8c883a /scripts
parent0226b55c00cd53c64aa6f6c80a28dd8b03cf9b1c (diff)
downloadmeta-fsl-arm-af65c73e4d809dc9eda4cbe2a01160597131eeca.tar.gz
scripts/get-maintainer: support multiple machine directories on the command line
Now the optional machine specification must be indicated by the --machine parameter, not to generate ambiguities with directories. Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-maintainer24
1 files changed, 17 insertions, 7 deletions
diff --git a/scripts/get-maintainer b/scripts/get-maintainer
index d5a7907..1c5be02 100755
--- a/scripts/get-maintainer
+++ b/scripts/get-maintainer
@@ -21,21 +21,31 @@ usage() {
21 cat<<EOF 21 cat<<EOF
22Usage: 22Usage:
23 23
24 $0 <path> [machine] 24 $0 [ --machine=<machine> ] <path> ...
25 25
26 Options: 26 <path>
27 Directory(ies) where to look for machine definition files.
27 28
28 path: directory to look for machine definition files 29 Options:
29 machine: optinal param to restrict the printing for a specific machine name
30 30
31 --machine=<machine>
32 Optional param to restrict the printing for a specific machine name.
31 33
32EOF 34EOF
33} 35}
34 36
35path=$1 37path=
36specific_machine=$2 38specific_machine=
39
40for opt in ${*}; do
41 if [ "`echo $opt | cut -b-10`" = "--machine=" ]; then
42 specific_machine="`echo $opt | cut -b11-`"
43 else
44 path="$path $opt"
45 fi
46done
37 47
38if [ -z "$1" ]; then 48if [ -z "$path" ]; then
39 usage 49 usage
40 return 1 50 return 1
41fi 51fi