Code Review
/
src
/
app-framework-main.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
doc: create documentation
[src/app-framework-main.git]
/
doc
/
updt.sh
1
#!/bin/sh
2
3
fmd() {
4
cat << EOC
5
<html>
6
<head>
7
<link rel="stylesheet" type="text/css" href="doc.css">
8
<meta charset="UTF-8">
9
</head>
10
<body>
11
$(cat)
12
</body>
13
</html>
14
EOC
15
}
16
17
18
for x in *.md; do
19
t=$(stat -c %Y $x)
20
t=$(git log -n 1 --format=%ct $x)
21
d=$(LANG= date -d @$t +"%d %B %Y")
22
sed -i "s/^\( Date: *\).*/\1$d/" $x
23
markdown -f toc,autolink $x | fmd > ${x%%.md}.html
24
done
25