diff --git a/src/include/footer.html b/include/footer.html similarity index 63% rename from src/include/footer.html rename to include/footer.html index 7ebef11..8c27cec 100644 --- a/src/include/footer.html +++ b/include/footer.html @@ -2,6 +2,6 @@
' + echo '' + sed -e's/"/\"/g' -e"s/'/\'/g" LICENSE.txt + echo '
以上
' +} mkdir -p www rm -rf www/* -cp -pv src/*.css www -cp -pv src/favicon.ico www -cp -pv src/robots.txt www -cp -pv src/076mute.user.js www -cp -rpv src/images www -cp -rpv src/styles www - -cd src - -for name in *.html; do - out=../www/$name - cat include/header.html $name >> $out - - # 目次以外にはフッターあり - if [ $name != index.html ]; then - if [ $1 -a $1 = '-local' ]; then - sed -e's/href="\.\/"/href=".\/index.html"/' include/footer.html >> $out - else - cat include/footer.html >> $out - fi - fi - - echo "src/$name -> www/$name" +cp -rpv $static www +for path in src/*.html; do + make_html $path done - -out=../www/publicdomain.html -cat include/header.html include/publicdomain.html > $out -echo '' >> $out -echo '' >> $out -sed -e's/"/\"/g' -e"s/'/\'/g" ../LICENSE.txt >> $out -echo '
以上
' >> $out -echo www/publicdomain.html -cd .. diff --git a/notice.sh b/notice.sh index 6cc67ae..26790e6 100755 --- a/notice.sh +++ b/notice.sh @@ -1,13 +1,13 @@ #/bin/sh # usage: -# $ ./notice.sh ./src/hello.html +# $ ./notice.sh src/hello.html BASE_I2P='http://bibi.i2p/' BASE_TOR='http://6wyvgarb3kht6umsqdjrkmwxhfobre24cr6bkmjszu4ngtuezjd45mqd.onion/' filepath=$1 title=`sed -n -e'/