projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GIT 0.99.9c
[git.git]
/
Documentation
/
howto-index.sh
diff --git
a/Documentation/howto-index.sh
b/Documentation/howto-index.sh
index
3a6afb9
..
34aa30c
100755
(executable)
--- a/
Documentation/howto-index.sh
+++ b/
Documentation/howto-index.sh
@@
-20,8
+20,37
@@
do
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