diff options
author | Josip Rodin <joy> | 2001-11-05 14:55:35 +0000 |
---|---|---|
committer | Josip Rodin <joy> | 2001-11-05 14:55:35 +0000 |
commit | b0153a41266a33c2351e0e04430b0aa68afdade1 (patch) | |
tree | 8a102ddc29d245490fc8b4dc432d64521c219667 /make_all.pl | |
parent | 29d6e24d7aecfc948acb90f2477b6ae3aa8d4685 (diff) |
the old way no longer works due to changes in Makefile.common; use a hack which has some overhead but works
CVS version numbers
make_all.pl: 1.3 -> 1.4
Diffstat (limited to 'make_all.pl')
-rwxr-xr-x | make_all.pl | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/make_all.pl b/make_all.pl index d5e8bb66058..fa08fa9001b 100755 --- a/make_all.pl +++ b/make_all.pl @@ -31,29 +31,20 @@ if (!@ARGV) { exit; } -my $relhtmlbase = "../debian.org/"; - foreach my $file (@ARGV) { $file =~ s,^english/,,; - my $level = 0; - my $destfile = ""; - my @parts = split '/', $file; - my $dir = pop @parts; - my $path = join '/', @parts; -# system ("mkdir -p $relhtmlbase$path"); - while ($dir) { $destfile .= "../"; $dir = pop @parts; } - $destfile .= $relhtmlbase . $file; + my $path = ""; my $filename; + if ($file =~ m,(.*)/([^/]+)$,) { $path = $1; $filename = $2; }; + warn "$path $filename\n"; foreach my $lang (@languages) { - next if ($lang eq "CVS"); if ( -f "$lang/$file" ) { my $pid = fork; if ($pid) { # parent # do nothing } else { # child - $destfile =~ s/.wml$/.$langs{$lang}.html/; print "Making the " . ucfirst $lang . " copy:\n"; - system("make -C $lang/$path $destfile"); # no need to handle make's errors + system("make -C $lang/$path -W $filename install SUBS="); # no need to handle make's errors exit 0; } waitpid($pid,0); |