refactor make script

このコミットが含まれているのは:
たかし 2023-11-11 08:55:16 +00:00
コミット 80b420cce3
2個のファイルの変更5行の追加12行の削除

11
make.sh
ファイルの表示

@ -6,11 +6,6 @@
# - for local reading:
# ./make.sh -local
footer=footer.html
if [ $1 -a $1 = '-local' ]; then
footer='footer-local.html'
fi
mkdir -p www
rm -rf www/*
cp -pv src/style.css www
@ -26,7 +21,11 @@ for name in *.html; do
# 目次以外にはフッターあり
if [ $name != index.html ]; then
cat include/$footer >> $out
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"

ファイルの表示

@ -1,6 +0,0 @@
<h2>附加情報</h2>
<ul>
<li><a href="./index.html">「美々蝶々」目次</a></li>
</ul>