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>
This commit is contained in:
Junio C Hamano
2005-08-26 12:35:51 -07:00
parent d8ddb0a416
commit f358c10f91
5 changed files with 39 additions and 2 deletions

View File

@ -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