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