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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user