diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-26 12:35:51 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-26 12:35:51 -0700 |
commit | f358c10f91889b1b75edc257fb45c20b583baf28 (patch) | |
tree | 8e0fc2700bdbc7b88f0b74f8cd088ebab30ed845 /Documentation/howto-index.sh | |
parent | d8ddb0a41610fffdf9ef1a256d19d5a27face9d7 (diff) | |
download | git-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-x | Documentation/howto-index.sh | 26 |
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 |