summaryrefslogtreecommitdiff
path: root/source4/heimdal_build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2013-11-23 19:46:26 +0000
committerAndrew Bartlett <abartlet@samba.org>2013-11-28 02:25:55 +0100
commit09e6a5e1562218c3bb8d1e498e02a5bb4543d481 (patch)
treea88d5115529aa3d372561d623a1ba7aceaace4f2 /source4/heimdal_build
parent91c1053413e1f309b2d5b215a423f37e3883aa91 (diff)
downloadsamba-09e6a5e1562218c3bb8d1e498e02a5bb4543d481.tar.gz
Remove no longer used asn1_deps.pl.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/heimdal_build')
-rwxr-xr-xsource4/heimdal_build/asn1_deps.pl103
1 files changed, 0 insertions, 103 deletions
diff --git a/source4/heimdal_build/asn1_deps.pl b/source4/heimdal_build/asn1_deps.pl
deleted file mode 100755
index 26be254f143..00000000000
--- a/source4/heimdal_build/asn1_deps.pl
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/usr/bin/perl
-# Generate make dependency rules for asn1 files
-# Jelmer Vernooij <jelmer@samba.org> 2005
-# Andrew Bartlett <abartlet@samba.org> 2006-2009
-# Stefan Metzmacher <metze@samba.org> 2007
-# GPL
-
-use File::Basename;
-
-my $file = shift;
-my $prefix = shift;
-my $dirname = shift;
-my $options = join(' ', @ARGV);
-my $import;
-my @imports = ();
-my $dep;
-my @deps = ();
-
-$basename = basename($file);
-if (not defined $options) {
- $options = "";
-}
-
-my $header = "$dirname/$prefix.h";
-my $headerx = "$dirname/$prefix.hx";
-my $headerpriv = "$dirname/$prefix-priv.h";
-my $headerprivx = "$dirname/$prefix-priv.hx";
-my $o_file = "$dirname/asn1_$prefix.o";
-my $c_file = "$dirname/asn1_$prefix.c";
-my $x_file = "$dirname/asn1_$prefix.x";
-my $output_file = "$dirname/" . $prefix . "_asn1_files";
-
-print "basics:: $header\n";
-print "$output_file: \$(heimdalsrcdir)/$file \$(ASN1C)\n";
-print "\t\@echo \"Compiling ASN1 file \$(heimdalsrcdir)/$file\"\n";
-print "\t\@\$(heimdalbuildsrcdir)/asn1_compile_wrapper.sh \$(builddir) $dirname \$(ASN1C) \$(call abspath,\$(heimdalsrcdir)/$file) $prefix $options --one-code-file && touch $output_file\n";
-print "$headerx: $output_file\n";
-print "$header: $headerx\n";
-print "\t\@cp $headerx $header\n";
-print "$headerpriv: $headerprivx\n";
-print "\t\@cp $headerprivx $headerpriv\n";
-print "$x_file: $header $headerpriv\n";
-print "$c_file: $x_file\n";
-print "\t\@echo \"#include \\\"config.h\\\"\" > $c_file && cat $x_file >> $c_file\n\n";
-
-open(IN,"heimdal/$file") or die("Can't open heimdal/$file: $!");
-my @lines = <IN>;
-close(IN);
-foreach my $line (@lines) {
- if ($line =~ /^(\s*IMPORT)([\w\,\s])*(\s+FROM\s+)([\w]+[\w\-]+);/) {
- $import = $line;
- chomp $import;
- push @imports, $import;
- $import = undef;
- } elsif ($line =~ /^(\s*IMPORT).*/) {
- $import = $line;
- chomp $import;
- } elsif (defined($import) and ($line =~ /;/)) {
- $import .= $line;
- chomp $import;
- push @imports, $import;
- $import = undef;
- } elsif (defined($import)) {
- $import .= $line;
- chomp $import;
- }
-}
-
-foreach $import (@imports) {
- next unless ($import =~ /^(\s*IMPORT)([\w\,\s])*(\s+FROM\s+)([\w]+[\w\-]+);/);
-
- my @froms = split (/\s+FROM\s+/, $import);
- foreach my $from (@froms) {
- next if ($from =~ /^(\s*IMPORT).*/);
- if ($from =~ /^(\w+)/) {
- my $f = $1;
- $dep = 'HEIMDAL_'.uc($f).'_ASN1';
- push @deps, $dep;
- }
- }
-}
-
-unshift @deps, "HEIMDAL_HEIM_ASN1" unless grep /HEIMDAL_HEIM_ASN1/, @deps;
-my $depstr = join(' ', @deps);
-
-print '[SUBSYSTEM::HEIMDAL_'.uc($prefix).']'."\n";
-print "CFLAGS = -Iheimdal_build -Iheimdal/lib/roken -I$dirname\n";
-print "PUBLIC_DEPENDENCIES = $depstr\n\n";
-
-print "HEIMDAL_".uc($prefix)."_OBJ_FILES = ";
-print "\\\n\t$o_file";
-
-print "\n\n";
-
-print "clean:: \n";
-print "\t\@echo \"Deleting ASN1 output files generated from $file\"\n";
-print "\t\@rm -f $output_file\n";
-print "\t\@rm -f $header\n";
-print "\t\@rm -f $c_file\n";
-print "\t\@rm -f $x_file\n";
-print "\t\@rm -f $dirname/$prefix\_files\n";
-print "\t\@rm -f $dirname/$prefix\.h\n";
-print "\n";