From 5ad216c8796a3d5f1f61a5fcbb9f31725d52f76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Fri, 25 Mar 2022 17:18:00 +0100 Subject: [PATCH] Update the scipt --- make_html.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/make_html.sh b/make_html.sh index f86931c..f2e57f5 100755 --- a/make_html.sh +++ b/make_html.sh @@ -5,14 +5,28 @@ echo "making HTML" rm -rf html mkdir html -for f in *.md; do - f2=$(echo "html/$f" | sed "s/\.md/.html/g") +DATE=`date +"%D"` +FILELIST="filelist.html" +HEADER="LRS Wiki

less_retarded_wiki

main page, file list, last updated on $DATE
" +FOOTER="

All content available under CC0 1.0 (public domain).

" - echo "LRS Wiki

based_wiki

main page
" > $f2 +echo "$HEADER $FOOTER" >> html/$FILELIST + echo "done"