Merge branch 'ao/send-email-irt'
[git/kirr.git] / Documentation / howto-index.sh
blob34aa30c5b9ffc617e1519878317c2ae83bed6a6a
1 #!/bin/sh
3 cat <<\EOF
4 GIT Howto Index
5 ===============
7 Here is a collection of mailing list postings made by various
8 people describing how they use git in their workflow.
10 EOF
12 for txt
14 title=`expr "$txt" : '.*/\(.*\)\.txt$'`
15 from=`sed -ne '
16 /^$/q
17 /^From:[ ]/{
18 s///
19 s/^[ ]*//
20 s/[ ]*$//
21 s/^/by /
24 ' "$txt"`
26 abstract=`sed -ne '
27 /^Abstract:[ ]/{
28 s/^[^ ]*//
30 s/.*//
32 : again
33 /^[ ]/{
34 s/^[ ]*//
37 b again
42 }' "$txt"`
44 if grep 'Content-type: text/asciidoc' >/dev/null $txt
45 then
46 file=`expr "$txt" : '\(.*\)\.txt$'`.html
47 else
48 file="$txt"
51 echo "* link:$file[$title] $from
52 $abstract
56 done