aboutsummaryrefslogtreecommitdiffstats
path: root/make_all.pl
diff options
context:
space:
mode:
authorJosip Rodin <joy>2001-11-05 14:55:35 +0000
committerJosip Rodin <joy>2001-11-05 14:55:35 +0000
commitb0153a41266a33c2351e0e04430b0aa68afdade1 (patch)
tree8a102ddc29d245490fc8b4dc432d64521c219667 /make_all.pl
parent29d6e24d7aecfc948acb90f2477b6ae3aa8d4685 (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-xmake_all.pl17
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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy