OSDN Git Service

[Add] #40880 「Alpha版の経緯と意義──コード変更の軌跡」の記事を追加。開発のメインページ項目に「開発に貢献したい方へ」を追加。
[hengband/web.git] / src / make.sh
1 #!/bin/bash
2
3 mkdir -p ../web ../web/history ../web/development
4 cp -r image *.txt hengband.css ../web
5
6 list="index web_update development 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="history0.1.0 history0.1.0post history0.1.1 history0.1.2 history0.1.3 history0.2.0 history0.2.1 history0.2.2 history0.2.3 history0.2.4 history0.2.5 history0.3.0 history0.3.1 history0.3.2 history0.3.3 history0.3.4 history0.3.5 history0.3.6 history0.4.0 history0.4.2 history0.4.5 history0.4.6 history0.4.7 history0.4.8 history0.4.10 history1.0.0 history1.0.1 history1.0.3 history1.0.4 history1.0.5 history1.0.6 history1.0.7 history1.0.8 history1.0.9 history1.0.10 history1.0.11 history1.1.0c1 history1.1.0 history1.2.0and1.3.0 history1.2.1 history1.2.2and1.3.1 history1.4.0and1.5.0 history1.4.1and1.5.1 history1.4.2and1.5.2 history1.4.3and1.5.3 history1.4.4and1.5.4 history1.4.5and1.6.0 history1.4.6and1.6.1 history1.4.7and1.6.2 history1.7.0 history1.7.1 history1.7.2 history2.0.0 history2.1.0 history2.1.1 history2.1.2 history2.1.3 history2.1.4 history2.1.5 history2.2.0 history2.2.1"
36 development_list="development201103 development201110"
37
38 for v in $history_list; do
39         echo ${v}
40         asciidoctor --no-header-footer --out-file=tmp.txt \
41                 --backend=html5 -a linkcss -a stylesheet=../hengband.css \
42                 history/${v}.adoc 
43         cat template.html | sed '/<!--main contents-->/r tmp.txt' \
44          | sed '/<!--head-->/r head.html' \
45          | sed '/<!--header-->/r header.html' \
46          | sed '/<!--footer-->/r footer.html' \
47          > ../web/history/${v}.html
48 done
49
50 for v in $development_list; do
51         echo ${v}
52         asciidoctor --no-header-footer --out-file=tmp.txt \
53                 --backend=html5 -a linkcss -a stylesheet=../hengband.css \
54                 development/${v}.adoc 
55         cat template.html | sed '/<!--main contents-->/r tmp.txt' \
56          | sed '/<!--head-->/r head.html' \
57          | sed '/<!--header-->/r header.html' \
58          | sed '/<!--footer-->/r footer.html' \
59          > ../web/development/${v}.html
60 done
61
62 rm tmp.txt
63