OSDN Git Service

スタイルシート修正。スコアページのルートにRSSとTwitterのリンク追加。 / Fix stylesheet. Add Twitter and RSS link...
[hengband/web.git] / src / make.sh
1 #!/bin/bash
2
3 mkdir -p ../web ../web/history
4 cp -r image *.txt hengband.css ../web
5
6 list="index web_update jlicense link download lists history"
7
8 for v in $list; do
9         echo ${v}
10         asciidoctor --no-header-footer --out-file=tmp.txt \
11                 --backend=html5 -a linkcss -a stylesheet=hengband.css \
12                 ${v}.adoc 
13         cat template.html | sed '/<!--main contents-->/r tmp.txt' \
14          | sed '/<!--head-->/r head.html' \
15          | sed '/<!--header-->/r header.html' \
16          | sed '/<!--footer-->/r footer.html' \
17          > ../web/${v}.html
18 done
19
20 score_list="score"
21
22 for v in $score_list; do
23         echo ${v}
24         asciidoctor --no-header-footer --out-file=tmp.txt \
25                 --backend=html5 -a linkcss -a stylesheet=hengband.css \
26                 ${v}.adoc
27         cat scorelinks.html >> tmp.txt
28         cat template.html | sed '/<!--main contents-->/r tmp.txt' \
29          | sed '/<!--head-->/r head_score.html' \
30          | sed '/<!--header-->/r header.html' \
31          | sed '/<!--footer-->/r footer.html' \
32          > ../web/${v}.html
33 done
34
35 history_list="history1.0.8"
36
37 for v in $history_list; do
38         echo ${v}
39         asciidoctor --no-header-footer --out-file=tmp.txt \
40                 --backend=html5 -a linkcss -a stylesheet=../hengband.css \
41                 history/${v}.adoc 
42         cat template.html | sed '/<!--main contents-->/r tmp.txt' \
43          | sed '/<!--head-->/r head.html' \
44          | sed '/<!--header-->/r header.html' \
45          | sed '/<!--footer-->/r footer.html' \
46          > ../web/history/${v}.html
47 done
48
49 rm tmp.txt
50