From: Sergey Vlasov Date: Thu, 1 Mar 2007 19:41:14 +0000 (+0300) Subject: Documentation/build-docdep.perl: Fix dependencies for included asciidoc files X-Git-Tag: v1.5.0.3~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2ba91e96981fb92f42b01dfae8a315b2965077d5;p=git.git Documentation/build-docdep.perl: Fix dependencies for included asciidoc files Adding dependencies on included files to the generated man pages is wrong - includes are processed by asciidoc, therefore the intermediate Docbook XML files really depend on included files. Because of these wrong dependencies the man pages were not rebuilt properly if the intermediate XML files were left in the tree. Signed-off-by: Sergey Vlasov Signed-off-by: Junio C Hamano --- diff --git a/Documentation/build-docdep.perl b/Documentation/build-docdep.perl index 489389c32..ba4205e03 100755 --- a/Documentation/build-docdep.perl +++ b/Documentation/build-docdep.perl @@ -41,10 +41,6 @@ while ($changed) { while (my ($text, $included) = each %include) { if (! exists $included{$text} && (my $base = $text) =~ s/\.txt$//) { - my ($suffix) = '1'; - if ($base eq 'git') { - $suffix = '7'; # yuck... - } - print "$base.html $base.$suffix : ", join(" ", keys %$included), "\n"; + print "$base.html $base.xml : ", join(" ", keys %$included), "\n"; } }