X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fmake.sh;h=14da34659f9741360c8f3a591565e683160f383c;hb=4b9b98de2e1af9120e893ce5697c0dfbb0588286;hp=d73b8825d2b66af5d5b1c6f974438d475b3d4df5;hpb=778b65f82eb9d18675b511b98b34fcbd2ba74916;p=hengband%2Fweb.git diff --git a/src/make.sh b/src/make.sh index d73b882..14da346 100644 --- a/src/make.sh +++ b/src/make.sh @@ -1,16 +1,49 @@ #!/bin/bash -list="index web_update jlicense link download lists" - -mkdir -p ../web +mkdir -p ../web ../web/history cp -r image *.txt hengband.css ../web +list="index web_update jlicense link download lists history" + for v in $list; do echo ${v} asciidoctor --no-header-footer --out-file=tmp.txt \ --backend=html5 -a linkcss -a stylesheet=hengband.css \ ${v}.adoc - cat template.html | sed '//r tmp.txt' > ../web/${v}.html + cat template.html | sed '//r tmp.txt' \ + | sed '//r head.html' \ + | sed '//r header.html' \ + | sed '//r footer.html' \ + > ../web/${v}.html +done + +score_list="score" + +for v in $score_list; do + echo ${v} + asciidoctor --no-header-footer --out-file=tmp.txt \ + --backend=html5 -a linkcss -a stylesheet=hengband.css \ + ${v}.adoc + cat scorelinks.html >> tmp.txt + cat template.html | sed '//r tmp.txt' \ + | sed '//r head_score.html' \ + | sed '//r header.html' \ + | sed '//r footer.html' \ + > ../web/${v}.html +done + +history_list="history0.0.12 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.3pre 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" + +for v in $history_list; do + echo ${v} + asciidoctor --no-header-footer --out-file=tmp.txt \ + --backend=html5 -a linkcss -a stylesheet=../hengband.css \ + history/${v}.adoc + cat template.html | sed '//r tmp.txt' \ + | sed '//r head.html' \ + | sed '//r header.html' \ + | sed '//r footer.html' \ + > ../web/history/${v}.html done rm tmp.txt