-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix documentation dependency generation.
Documentation/Makefile spent a lot of time to generate include dependencies, which was quite noticeable especially during "make clean". Rewrite it to generate just a single dependency file. Signed-off-by: Junio C Hamano <junkio@cox.net>
- Loading branch information
Junio C Hamano
committed
Nov 8, 2005
1 parent
79f6ac7
commit a5ae8e6
Showing
3 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.1 | ||
*.7 | ||
howto-index.txt | ||
doc.dep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/perl | ||
|
||
my %include = (); | ||
|
||
for my $text (<git-*.txt>) { | ||
open I, '<', $text || die "cannot read: $text"; | ||
(my $base = $text) =~ s/\.txt$//; | ||
while (<I>) { | ||
if (/^include::/) { | ||
chomp; | ||
s/^include::\s*//; | ||
s/\[\]//; | ||
$include{$base}{$_} = 1; | ||
} | ||
} | ||
close I; | ||
} | ||
|
||
# Do we care about chained includes??? | ||
|
||
while (my ($base, $included) = each %include) { | ||
my ($suffix) = '1'; | ||
if ($base eq 'git') { | ||
$suffix = '7'; # yuck... | ||
} | ||
print "$base.html $base.$suffix : ", join(" ", keys %$included), "\n"; | ||
} | ||
|