aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/howto-index.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-26 12:35:51 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-26 12:35:51 -0700
commitf358c10f91889b1b75edc257fb45c20b583baf28 (patch)
tree8e0fc2700bdbc7b88f0b74f8cd088ebab30ed845 /Documentation/howto-index.sh
parentd8ddb0a41610fffdf9ef1a256d19d5a27face9d7 (diff)
downloadgit-f358c10f91889b1b75edc257fb45c20b583baf28.tar.gz
Add Abstract: support for howto index generator.
Maybe it's time for me to really learn asciidoc. Also I should do Perl ;-). Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/howto-index.sh')
-rwxr-xr-xDocumentation/howto-index.sh26
1 files changed, 24 insertions, 2 deletions
diff --git a/Documentation/howto-index.sh b/Documentation/howto-index.sh
index 3a6afb9f6a..f9d3e57a91 100755
--- a/Documentation/howto-index.sh
+++ b/Documentation/howto-index.sh
@@ -20,8 +20,30 @@ do
s/[ ]*$//
s/^/by /
p
+ }
+ ' "$txt"`
+
+ abstract=`sed -ne '
+ /^Abstract:[ ]/{
+ s/^[^ ]*//
+ x
+ s/.*//
+ x
+ : again
+ /^[ ]/{
+ s/^[ ]*//
+ H
+ n
+ b again
+ }
+ x
+ p
+ q
}' "$txt"`
- echo "
- * link:$txt[$title] $from"
+
+ echo "* link:$txt[$title] $from
+$abstract
+
+"
done