repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PATCH] Add some documentation.
[alt-git.git]
/
Documentation
/
howto-index.sh
blob
f9d3e57a9179d86389ce4b3f56e34431f1e9a4a7
1
#!/bin/sh
2
3
cat
<<
\EOF
4
GIT Howto Index
5
===============
6
7
Here is a collection of mailing list postings made by various
8
people describing how they use git
in
their workflow.
9
10
EOF
11
12
for
txt
13
do
14
title
=
`expr "
$txt
" : '.*/\(.*\)\.txt$'`
15
from
=
`sed -ne '
16
/^$/q
17
/^From:[ ]/{
18
s///
19
s/^[ ]*//
20
s/[ ]*$//
21
s/^/by /
22
p
23
}
24
' "
$txt
"`
25
26
abstract
=
`sed -ne '
27
/^Abstract:[ ]/{
28
s/^[^ ]*//
29
x
30
s/.*//
31
x
32
: again
33
/^[ ]/{
34
s/^[ ]*//
35
H
36
n
37
b again
38
}
39
x
40
p
41
q
42
}' "
$txt
"`
43
44
echo
"* link:
$txt
[
$title
]
$from
45
$abstract
46
47
"
48
49
done