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