summaryrefslogtreecommitdiff
path: root/Documentation/fix-texi.perl
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2007-08-06 10:22:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-08-11 06:16:18 (GMT)
commit4739809cd0ea12a8de006f9f086fdff9285189b8 (patch)
tree7ad82687f0720c5b5f2d7f9f674b1de52303b448 /Documentation/fix-texi.perl
parentfa548703d1e60231828266856467d3d73ac51f0f (diff)
downloadgit-4739809cd0ea12a8de006f9f086fdff9285189b8.zip
git-4739809cd0ea12a8de006f9f086fdff9285189b8.tar.gz
git-4739809cd0ea12a8de006f9f086fdff9285189b8.tar.bz2
Add support for an info version of the user manual
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>
Diffstat (limited to 'Documentation/fix-texi.perl')
-rwxr-xr-xDocumentation/fix-texi.perl15
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/fix-texi.perl b/Documentation/fix-texi.perl
new file mode 100755
index 0000000..ff7d78f
--- /dev/null
+++ b/Documentation/fix-texi.perl
@@ -0,0 +1,15 @@
+#!/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;
+ }
+}