index 3a6afb9f6ab7607577016a98ca27e7035b656ce6..34aa30c5b9ffc617e1519878317c2ae83bed6a6a 100755 (executable)
s/[ ]*$//
s/^/by /
p
s/[ ]*$//
s/^/by /
p
+ }
+ ' "$txt"`
+
+ abstract=`sed -ne '
+ /^Abstract:[ ]/{
+ s/^[^ ]*//
+ x
+ s/.*//
+ x
+ : again
+ /^[ ]/{
+ s/^[ ]*//
+ H
+ n
+ b again
+ }
+ x
+ p
+ q
}' "$txt"`
}' "$txt"`
- echo "
- * link:$txt[$title] $from"
+
+ if grep 'Content-type: text/asciidoc' >/dev/null $txt
+ then
+ file=`expr "$txt" : '\(.*\)\.txt$'`.html
+ else
+ file="$txt"
+ fi
+
+ echo "* link:$file[$title] $from
+$abstract
+
+"
done
done