25 lines
726 B
Bash
Executable File
25 lines
726 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set +e
|
|
|
|
mkdir -p ./html/articles
|
|
|
|
./tools/main_page_generator.py ./articles | ./tools/mmd/build/multimarkdown > ./html/index.html
|
|
|
|
for d in ./articles/*/; do
|
|
if [ -d "$d" ]; then
|
|
if test -f "$d/make"; then
|
|
"$d/make"
|
|
fi
|
|
if test -d "$d/.dynamic"; then
|
|
mkdir -p "./html/articles/$(basename -- $d)"
|
|
cp -r "$d/.dynamic/." "./html/articles/$(basename -- $d)/"
|
|
fi
|
|
./tools/article_wrapper.py "$d/page.mmd" https://mjestecko.neocities.org/ | ./tools/mmd/build/multimarkdown > "./html/articles/$(basename -- $d).html"
|
|
fi
|
|
done
|
|
|
|
./tools/feed_generator.py ./articles/ https://mjestecko.neocities.org/ > ./html/feed.xml
|
|
|
|
./tools/track_listing_generator.py html/tracks > html/tracks.html
|