mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
The "fix-texi.perl" script is used to fix up the output of `docbook2x-texi`: - It changes the filename to be "git.info". - It changes the directory category and entry. The script is written in Perl, but it can be rather trivially converted to a shell script. Do so to remove the dependency on Perl for building the user manual. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
22 lines
326 B
Bash
Executable File
22 lines
326 B
Bash
Executable File
#!/bin/sh
|
|
|
|
awk '
|
|
/^@setfilename/{
|
|
print "@setfilename git.info"
|
|
next
|
|
}
|
|
/^@direntry/{
|
|
direntry=1
|
|
print "@dircategory Development"
|
|
print "@direntry"
|
|
print "* Git: (git). A fast distributed revision control system"
|
|
print "@end direntry"
|
|
next
|
|
}
|
|
/^@end direntry/{
|
|
direntry=0
|
|
next
|
|
}
|
|
!direntry
|
|
'
|