diff options
| author | Joe Perches <joe@perches.com> | 2009-09-21 20:04:21 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:46 -0400 |
| commit | 42498316132e89ca2835b977a7cfb32a83e97b35 (patch) | |
| tree | 1854b2321f90fc546c135b11adcded4429fe299c /scripts | |
| parent | 8cbb3a77e1a91073fb279a495a11d5093461dfe5 (diff) | |
scripts/get_maintainer.pl: using --separator implies --nomultiline
If a person sets a separator, it's only used if --nomultiline is set.
Don't make the command line also include --nomultiline in that case.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get_maintainer.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 8b80b5abb860..446803efe620 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl | |||
| @@ -105,6 +105,10 @@ if ($#ARGV < 0) { | |||
| 105 | die "$P: argument missing: patchfile or -f file please\n"; | 105 | die "$P: argument missing: patchfile or -f file please\n"; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | if ($output_separator ne ", ") { | ||
| 109 | $output_multiline = 0; | ||
| 110 | } | ||
| 111 | |||
| 108 | my $selections = $email + $scm + $status + $subsystem + $web; | 112 | my $selections = $email + $scm + $status + $subsystem + $web; |
| 109 | if ($selections == 0) { | 113 | if ($selections == 0) { |
| 110 | usage(); | 114 | usage(); |
| @@ -376,6 +380,7 @@ MAINTAINER field selection options: | |||
| 376 | 380 | ||
| 377 | Output type options: | 381 | Output type options: |
| 378 | --separator [, ] => separator for multiple entries on 1 line | 382 | --separator [, ] => separator for multiple entries on 1 line |
| 383 | using --separator also sets --nomultiline if --separator is not [, ] | ||
| 379 | --multiline => print 1 entry per line | 384 | --multiline => print 1 entry per line |
| 380 | 385 | ||
| 381 | Other options: | 386 | Other options: |
