Skip to content

Commit 41c793e

Browse files
tmzullingergitster
authored andcommitted
doc: update howto-index.sh for .adoc extensions
The .txt extensions were changed to .adoc in 1f010d6 (doc: use .adoc extension for AsciiDoc files, 2025-01-20). This left broken links in the generated howto-index.html. Signed-off-by: Todd Zullinger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2a1530a commit 41c793e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Documentation/howto/howto-index.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ people describing how they use Git in their workflow.
99
1010
EOF
1111

12-
for txt
12+
for adoc
1313
do
14-
title=$(expr "$txt" : '.*/\(.*\)\.txt$')
14+
title=$(expr "$adoc" : '.*/\(.*\)\.adoc$')
1515
from=$(sed -ne '
1616
/^$/q
1717
/^From:[ ]/{
@@ -21,7 +21,7 @@ do
2121
s/^/by /
2222
p
2323
}
24-
' "$txt")
24+
' "$adoc")
2525

2626
abstract=$(sed -ne '
2727
/^Abstract:[ ]/{
@@ -39,13 +39,13 @@ do
3939
x
4040
p
4141
q
42-
}' "$txt")
42+
}' "$adoc")
4343

44-
if grep 'Content-type: text/asciidoc' >/dev/null $txt
44+
if grep 'Content-type: text/asciidoc' >/dev/null $adoc
4545
then
46-
file=$(expr "$txt" : '\(.*\)\.txt$').html
46+
file=$(expr "$adoc" : '\(.*\)\.adoc$').html
4747
else
48-
file="$txt"
48+
file="$adoc"
4949
fi
5050

5151
echo "* link:howto/$(basename "$file")[$title] $from

0 commit comments

Comments
 (0)