svn commit: samba r18215 - in branches/SAMBA_4_0/source/build/smb_build: .

metze at samba.org metze at samba.org
Thu Sep 7 10:32:49 GMT 2006


Author: metze
Date: 2006-09-07 10:32:49 +0000 (Thu, 07 Sep 2006)
New Revision: 18215

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18215

Log:
use a shorter version

metze
Modified:
   branches/SAMBA_4_0/source/build/smb_build/output.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/output.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/output.pm	2006-09-07 10:25:55 UTC (rev 18214)
+++ branches/SAMBA_4_0/source/build/smb_build/output.pm	2006-09-07 10:32:49 UTC (rev 18215)
@@ -132,13 +132,8 @@
 			my $elem = $depend->{$_};
 			next if $elem == $part;
 
-			if (defined(@{$elem->{CPPFLAGS}})) {
-				my $count = 0;
-				foreach (@{$elem->{CPPFLAGS}}) {
-					$count++;
-				}
-				push(@{$part->{PUBLIC_CFLAGS}}, @{$elem->{CPPFLAGS}}) if ($count > 0);
-			}
+			push(@{$part->{PUBLIC_CFLAGS}}, @{$elem->{CPPFLAGS}}) if (defined(@{$elem->{CPPFLAGS}}))
+									      and ($#{$elem->{CPPFLAGS}} > 0);
 
 			next if not defined($elem->{CFLAGS});
 			next if $elem->{CFLAGS} eq "";



More information about the samba-cvs mailing list