2005-08-25 07:28:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cat <<\EOF
|
2013-01-21 19:16:20 +00:00
|
|
|
Git Howto Index
|
2005-08-25 07:28:18 +00:00
|
|
|
===============
|
|
|
|
|
|
|
|
Here is a collection of mailing list postings made by various
|
2013-01-21 19:17:53 +00:00
|
|
|
people describing how they use Git in their workflow.
|
2005-08-25 07:28:18 +00:00
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
for txt
|
|
|
|
do
|
2014-04-16 17:29:45 +00:00
|
|
|
title=$(expr "$txt" : '.*/\(.*\)\.txt$')
|
|
|
|
from=$(sed -ne '
|
2005-08-25 07:28:18 +00:00
|
|
|
/^$/q
|
|
|
|
/^From:[ ]/{
|
|
|
|
s///
|
|
|
|
s/^[ ]*//
|
|
|
|
s/[ ]*$//
|
|
|
|
s/^/by /
|
|
|
|
p
|
2005-08-26 19:35:51 +00:00
|
|
|
}
|
2014-04-16 17:29:45 +00:00
|
|
|
' "$txt")
|
2005-08-26 19:35:51 +00:00
|
|
|
|
2014-04-16 17:29:45 +00:00
|
|
|
abstract=$(sed -ne '
|
2005-08-26 19:35:51 +00:00
|
|
|
/^Abstract:[ ]/{
|
|
|
|
s/^[^ ]*//
|
|
|
|
x
|
|
|
|
s/.*//
|
|
|
|
x
|
|
|
|
: again
|
|
|
|
/^[ ]/{
|
|
|
|
s/^[ ]*//
|
|
|
|
H
|
|
|
|
n
|
|
|
|
b again
|
|
|
|
}
|
|
|
|
x
|
|
|
|
p
|
|
|
|
q
|
2014-04-16 17:29:45 +00:00
|
|
|
}' "$txt")
|
2005-08-26 19:35:51 +00:00
|
|
|
|
2005-08-30 05:38:12 +00:00
|
|
|
if grep 'Content-type: text/asciidoc' >/dev/null $txt
|
|
|
|
then
|
2014-04-16 17:29:45 +00:00
|
|
|
file=$(expr "$txt" : '\(.*\)\.txt$').html
|
2005-08-30 05:38:12 +00:00
|
|
|
else
|
|
|
|
file="$txt"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "* link:$file[$title] $from
|
2005-08-26 19:35:51 +00:00
|
|
|
$abstract
|
|
|
|
|
|
|
|
"
|
2005-08-25 07:28:18 +00:00
|
|
|
|
|
|
|
done
|