2021-10-01 00:26:50 +00:00
|
|
|
TEMPDIR=/tmp/openbsd-webzine
|
2021-09-29 11:16:12 +00:00
|
|
|
|
2021-09-29 16:59:03 +00:00
|
|
|
generate-site: clean
|
2021-09-30 20:04:59 +00:00
|
|
|
ls | grep issue- | sort -n | xargs -n 1 tools/make_issue.sh
|
2022-03-21 20:37:42 +00:00
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=de tools/make_issue.sh
|
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=fr tools/make_issue.sh
|
2022-04-25 18:50:45 +00:00
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=it tools/make_issue.sh
|
2022-04-21 21:05:45 +00:00
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=ru tools/make_issue.sh
|
2021-09-29 16:47:42 +00:00
|
|
|
tools/make_issue.sh _index ../public/index.html
|
2021-09-29 16:59:03 +00:00
|
|
|
cp -fr _static/* ../public/
|
2021-09-29 16:47:42 +00:00
|
|
|
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml
|
2021-09-29 13:00:26 +00:00
|
|
|
gzip -9 -c ../public/sitemap.xml > ../public/sitemap.gz
|
2021-09-29 16:47:42 +00:00
|
|
|
tools/atom.sh webzine.puffy.cafe > ../public/atom.xml
|
2021-09-29 17:29:17 +00:00
|
|
|
xmllint -format ../public/atom.xml
|
2022-03-15 07:35:00 +00:00
|
|
|
find ../public/ -name '*.xml' -exec gzip -9 -k {} \;
|
|
|
|
find ../public/ -name '*.html' -exec gzip -9 -k {} \;
|
2021-09-26 21:53:00 +00:00
|
|
|
|
2021-10-06 20:08:22 +00:00
|
|
|
puffy: clean
|
|
|
|
tools/make_issue.sh _puffy.cafe ../public/index.html
|
|
|
|
|
2021-09-29 11:26:30 +00:00
|
|
|
all: generate-site
|
|
|
|
|
2021-09-26 21:53:00 +00:00
|
|
|
clean:
|
2021-09-29 19:09:55 +00:00
|
|
|
rm -fr ../dev/*html ../public/*
|
2021-09-26 21:53:00 +00:00
|
|
|
|
|
|
|
test:
|
2021-09-29 11:16:12 +00:00
|
|
|
mkdir -p ${TEMPDIR}
|
2021-09-29 16:52:37 +00:00
|
|
|
tools/make_issue.sh current ${TEMPDIR}/current-issue.html
|
2021-09-29 11:16:12 +00:00
|
|
|
xdg-open ${TEMPDIR}/current-issue.html
|
2021-09-27 12:05:49 +00:00
|
|
|
|
2021-09-29 16:59:03 +00:00
|
|
|
# only difference with generate-site is make_issue.sh -t
|
2021-09-29 11:16:12 +00:00
|
|
|
testsite: clean
|
2021-09-30 20:04:59 +00:00
|
|
|
ls | grep issue- | sort -n | xargs -n 1 tools/make_issue.sh -t
|
2022-03-21 20:37:42 +00:00
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=de tools/make_issue.sh -t
|
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=fr tools/make_issue.sh -t
|
2022-04-25 18:50:45 +00:00
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=it tools/make_issue.sh -t
|
2022-04-21 21:05:45 +00:00
|
|
|
-ls | grep issue- | sort -n | xargs -n 1 env LN=ru tools/make_issue.sh -t
|
2021-09-29 16:52:37 +00:00
|
|
|
tools/make_issue.sh _index ../public/index.html
|
2021-09-29 16:59:03 +00:00
|
|
|
cp -fr _static/* ../public/
|
|
|
|
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml
|
|
|
|
gzip -9 -c ../public/sitemap.xml > ../public/sitemap.gz
|
|
|
|
tools/atom.sh webzine.puffy.cafe > ../public/atom.xml
|
2021-09-29 17:29:17 +00:00
|
|
|
xmllint -format ../public/atom.xml
|
2021-09-29 11:16:12 +00:00
|
|
|
mkdir -p ${TEMPDIR}
|
|
|
|
cp -fr ../public ${TEMPDIR}/
|
|
|
|
xdg-open ${TEMPDIR}/public/index.html
|