diff options
| author | Mario Domenech Goulart <mario@ossystems.com.br> | 2014-04-25 10:38:56 -0300 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2014-04-25 11:30:12 -0300 |
| commit | cbbc9dfd41bc77f84f7420edd2896f63f4fc3846 (patch) | |
| tree | 57b9515ebd9d7a9170275a5a4730c780f643d032 | |
| parent | d2378a9bc3b8d6e4cf06c1fc9a752a16891c1399 (diff) | |
| download | meta-freescale-cbbc9dfd41bc77f84f7420edd2896f63f4fc3846.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>
| -rwxr-xr-x | meta-fsl-arm/scripts/get-maintainer | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/meta-fsl-arm/scripts/get-maintainer b/meta-fsl-arm/scripts/get-maintainer index d5a790741..1c5be02f2 100755 --- a/meta-fsl-arm/scripts/get-maintainer +++ b/meta-fsl-arm/scripts/get-maintainer | |||
| @@ -21,21 +21,31 @@ usage() { | |||
| 21 | cat<<EOF | 21 | cat<<EOF |
| 22 | Usage: | 22 | Usage: |
| 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 | ||
| 32 | EOF | 34 | EOF |
| 33 | } | 35 | } |
| 34 | 36 | ||
| 35 | path=$1 | 37 | path= |
| 36 | specific_machine=$2 | 38 | specific_machine= |
| 39 | |||
| 40 | for 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 | ||
| 46 | done | ||
| 37 | 47 | ||
| 38 | if [ -z "$1" ]; then | 48 | if [ -z "$path" ]; then |
| 39 | usage | 49 | usage |
| 40 | return 1 | 50 | return 1 |
| 41 | fi | 51 | fi |
