mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08:00
4739809cd0
These patches use docbook2x in order to create an info version of the git user manual. No existing Makefile targets (including "all") are touched, so you need to explicitly say make info sudo make install-info to get git.info created and installed. If the info target directory does not already contain a "dir" file, no directory entry is created. This facilitates $(DESTDIR)-based installations. The same could be achieved with sudo make INSTALL_INFO=: install-info explicitly. perl is used for patching up sub-par file and directory information in the Texinfo file. It would be cleaner to place the respective info straight into user-manual.txt or the conversion configurations, but I find myself unable to find out how to do this with Asciidoc/Texinfo. Signed-off-by: David Kastrup <dak@gnu.org>
16 lines
309 B
Perl
Executable File
16 lines
309 B
Perl
Executable File
#!/usr/bin/perl -w
|
|
|
|
while (<>) {
|
|
if (/^\@setfilename/) {
|
|
$_ = "\@setfilename git.info\n";
|
|
} elsif (/^\@direntry/) {
|
|
print '@dircategory Development
|
|
@direntry
|
|
* Git: (git). A fast distributed revision control system
|
|
@end direntry
|
|
'; }
|
|
unless (/^\@direntry/../^\@end direntry/) {
|
|
print;
|
|
}
|
|
}
|