summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/et_deps.pl
blob: c626d8b7ffe331dd433a3b356ca0a1db1c6984bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl

use File::Basename;

my $file = shift;
my $dirname = shift;
my $basename = basename($file);

my $header = "$dirname/$basename"; $header =~ s/\.et$/.h/;
my $source = "$dirname/$basename"; $source =~ s/\.et$/.c/;
print "$header $source: $file bin/compile_et\n";
print "\t\@echo \"Compiling error table $file\"\n";
print "\t\@startdir=`pwd` && cd $dirname && " . '$$startdir/bin/compile_et $$startdir/' . "$file\n\n";