diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-25 15:39:46 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-29 15:02:30 +0100 |
commit | 0a5647c0e76100e12b186d0fbc17e66d6b231f54 (patch) | |
tree | 1700c615c7142f1e61ae7712ce81b0a04015063b /source4/script | |
parent | 4453348aed08e9d164454a8660081b5c177cd44b (diff) | |
download | samba-0a5647c0e76100e12b186d0fbc17e66d6b231f54.tar.gz samba-0a5647c0e76100e12b186d0fbc17e66d6b231f54.tar.bz2 samba-0a5647c0e76100e12b186d0fbc17e66d6b231f54.zip |
Remove the now unused cflags script.
(This used to be commit f97cce2522e7644181506dc49947297b394743eb)
Diffstat (limited to 'source4/script')
-rwxr-xr-x | source4/script/cflags.pl | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/source4/script/cflags.pl b/source4/script/cflags.pl deleted file mode 100755 index 37b5aa7e71..0000000000 --- a/source4/script/cflags.pl +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env perl - -# This is a hack to allow per target cflags. It isn't very elegant, but it -# is the most portable idea we have come up with yet -# tridge@samba.org, July 2005 -# jelmer@samba.org, March 2006 -use strict; - -my $target = shift; - -my $vars = {}; - -sub check_flags($$); -sub check_flags($$) -{ - my ($path, $name)=@_; - open (IN, $path); - foreach my $line (<IN>) { - if ($line =~ /^include (.*)$/) { - check_flags($1, $name); - } elsif ($line =~ /^([A-Za-z0-9_]+) =(.*)$/) { - $vars->{$1} = $2; - } elsif ($line =~ /^([^:]+): (.*)$/) { - next unless (grep(/^$target$/, (split / /, $1))); - my $data = $2; - $data =~ s/^CFLAGS\+=//; - foreach my $key (keys %$vars) { - my $val = $vars->{$key}; - $data =~ s/\$\($key\)/$val/g; - } - # Remove undefined variables - $data =~ s/\$\([A-Za-z0-9_]+\)//g; - print "$data "; - } - } - close(IN); -} - -check_flags("extra_cflags.txt", $target); -print "\n"; - -exit 0; |