Opened 7 years ago

Closed 7 years ago

#9346 closed defect (fixed)

git: moving the docs breaks links in the howto indexes

Reported by: Jeremy Henty Owned by: blfs-book@…
Priority: normal Milestone: 8.1
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

The BLFS instructions for git rearrange many of the documentation files. Unfortunately this breaks the links in the HOWTO index files. The attachment has some sed commands that fix the HOWTO indexes so that the links work again.

Attachments (1)

git_doc_fix (169 bytes ) - added by Jeremy Henty 7 years ago.
Sed commands to fix the HOWTO indexes

Download all attachments as: .zip

Change History (3)

by Jeremy Henty, 7 years ago

Attachment: git_doc_fix added

Sed commands to fix the HOWTO indexes

comment:1 by bdubbs@…, 7 years ago

You don't need to use an attachment for something so short.

sed -i '/^<a href=/s|howto/|howto/html/|' /usr/share/doc/git-2.13.1/howto-index.html
sed -i '/^\* link:/s|howto/|howto/html/|' /usr/share/doc/git-2.13.1/howto-index.txt

These can be shortened up a little with:

sed -i '/^<a href=/s|howto/|&html/|' /usr/share/doc/git-2.13.1/howto-index.html
sed -i '/^\* link:/s|howto/|&text/|' /usr/share/doc/git-2.13.1/howto-index.txt

Note that the links in the txt file should point to text, not html.

comment:2 by bdubbs@…, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in revision 18815.

Note: See TracTickets for help on using tickets.