aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/howto/howto-index.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-03-06 14:06:31 -0800
committerJunio C Hamano <gitster@pobox.com>2025-03-06 14:06:31 -0800
commit62c58891e177bb3860ab19d2dc2e23909759c6ed (patch)
tree85986060f2cf04b2a4d15a800a026b82285465f6 /Documentation/howto/howto-index.sh
parente969bc875963a10890d61ba84eab3a460bd9e535 (diff)
parent61cd812130bda9c8996c90283501ee00c029c7a4 (diff)
downloadgit-62c58891e177bb3860ab19d2dc2e23909759c6ed.tar.gz
Merge branch 'tz/doc-txt-to-adoc-fixes'
Fallouts from recent renaming of documentation files from .txt suffix to the new .adoc suffix have been corrected. * tz/doc-txt-to-adoc-fixes: (38 commits) xdiff: *.txt -> *.adoc fixes unpack-trees.c: *.txt -> *.adoc fixes transport.h: *.txt -> *.adoc fixes trace2/tr2_sysenv.c: *.txt -> *.adoc fixes trace2.h: *.txt -> *.adoc fixes t6434: *.txt -> *.adoc fixes t6012: *.txt -> *.adoc fixes t/helper/test-rot13-filter.c: *.txt -> *.adoc fixes simple-ipc.h: *.txt -> *.adoc fixes setup.c: *.txt -> *.adoc fixes refs.h: *.txt -> *.adoc fixes pseudo-merge.h: *.txt -> *.adoc fixes parse-options.h: *.txt -> *.adoc fixes object-name.c: *.txt -> *.adoc fixes list-objects-filter-options.h: *.txt -> *.adoc fixes fsck.h: *.txt -> *.adoc fixes diffcore.h: *.txt -> *.adoc fixes diff.h: *.txt -> *.adoc fixes contrib/long-running-filter: *.txt -> *.adoc fixes config.c: *.txt -> *.adoc fixes ...
Diffstat (limited to 'Documentation/howto/howto-index.sh')
-rwxr-xr-xDocumentation/howto/howto-index.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/howto/howto-index.sh b/Documentation/howto/howto-index.sh
index eecd123a93..ace49830a8 100755
--- a/Documentation/howto/howto-index.sh
+++ b/Documentation/howto/howto-index.sh
@@ -9,9 +9,9 @@ people describing how they use Git in their workflow.
EOF
-for txt
+for adoc
do
- title=$(expr "$txt" : '.*/\(.*\)\.txt$')
+ title=$(expr "$adoc" : '.*/\(.*\)\.adoc$')
from=$(sed -ne '
/^$/q
/^From:[ ]/{
@@ -21,7 +21,7 @@ do
s/^/by /
p
}
- ' "$txt")
+ ' "$adoc")
abstract=$(sed -ne '
/^Abstract:[ ]/{
@@ -39,13 +39,13 @@ do
x
p
q
- }' "$txt")
+ }' "$adoc")
- if grep 'Content-type: text/asciidoc' >/dev/null $txt
+ if grep 'Content-type: text/asciidoc' >/dev/null $adoc
then
- file=$(expr "$txt" : '\(.*\)\.txt$').html
+ file=$(expr "$adoc" : '\(.*\)\.adoc$').html
else
- file="$txt"
+ file="$adoc"
fi
echo "* link:howto/$(basename "$file")[$title] $from