diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-07 11:17:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:51 -0500 |
commit | 0a05a6fea0c3760509a6aaef24d5ecb27c30111c (patch) | |
tree | 36988059ea9034f2fe6f25b27aedc99a381175d3 /source4 | |
parent | b7f937bdbbb419c85c2fe2682dc48aa247b621fc (diff) | |
download | samba-0a05a6fea0c3760509a6aaef24d5ecb27c30111c.tar.gz samba-0a05a6fea0c3760509a6aaef24d5ecb27c30111c.tar.bz2 samba-0a05a6fea0c3760509a6aaef24d5ecb27c30111c.zip |
r18217: use shorter perl
metze
(This used to be commit 4ce7b4e45c016215a84a70b677d55cc6e79a2473)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/build/smb_build/output.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm index 6213497a58..5bdb4a417a 100644 --- a/source4/build/smb_build/output.pm +++ b/source4/build/smb_build/output.pm @@ -137,11 +137,7 @@ sub create_output($$) next if not defined($elem->{CFLAGS}); next if $elem->{CFLAGS} eq ""; - my $found = 0; - foreach my $line (@{$part->{PUBLIC_CFLAGS}}) { - $found = 1 if ($line eq $elem->{CFLAGS}); - } - next if ($found == 1); + next if (grep /^$elem->{CFLAGS}$/, @{$part->{PUBLIC_CFLAGS}}); push(@{$part->{PUBLIC_CFLAGS}}, $elem->{CFLAGS}); } |