コミット
a160570dc8
14
make.sh
14
make.sh
|
@ -6,11 +6,6 @@
|
||||||
# - for local reading:
|
# - for local reading:
|
||||||
# ./make.sh -local
|
# ./make.sh -local
|
||||||
|
|
||||||
BASE_I2P='http://bibi.i2p/'
|
|
||||||
BASE_TOR='http://6wyvgarb3kht6umsqdjrkmwxhfobre24cr6bkmjszu4ngtuezjd45mqd.onion/'
|
|
||||||
|
|
||||||
filepath=$1
|
|
||||||
|
|
||||||
footer=footer.html
|
footer=footer.html
|
||||||
if [ $1 -a $1 = '-local' ]; then
|
if [ $1 -a $1 = '-local' ]; then
|
||||||
footer='footer-local.html'
|
footer='footer-local.html'
|
||||||
|
@ -32,15 +27,6 @@ for name in *.html; do
|
||||||
# 目次以外にはフッターあり
|
# 目次以外にはフッターあり
|
||||||
if [ $name != index.html ]; then
|
if [ $name != index.html ]; then
|
||||||
cat include/$footer >> $out
|
cat include/$footer >> $out
|
||||||
|
|
||||||
# コピペ用テキストを追加してみる
|
|
||||||
title=`sed -n -e'/<title>/s/^.*<title>//p' $name | sed -es'/<.*$//'`
|
|
||||||
echo >> $out
|
|
||||||
echo '<ul>' >> $out
|
|
||||||
echo "\t<li>$title<br>" >> $out
|
|
||||||
echo "\tI2P: ${BASE_I2P}${name}<br>" >> $out
|
|
||||||
echo "\tTor: ${BASE_TOR}${name}</li>" >> $out
|
|
||||||
echo '</ul>' >> $out
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "src/$name -> www/$name"
|
echo "src/$name -> www/$name"
|
||||||
|
|
読み込み中…
新しいイシューから参照