Replace the compression script with new gzip -k feature

This commit is contained in:
Solene Rapenne 2022-03-15 08:35:00 +01:00
parent 9ab38bb686
commit fffcee44aa
2 changed files with 2 additions and 14 deletions

View File

@ -8,7 +8,8 @@ generate-site: clean
gzip -9 -c ../public/sitemap.xml > ../public/sitemap.gz
tools/atom.sh webzine.puffy.cafe > ../public/atom.xml
xmllint -format ../public/atom.xml
tools/compress_static.sh
find ../public/ -name '*.xml' -exec gzip -9 -k {} \;
find ../public/ -name '*.html' -exec gzip -9 -k {} \;
puffy: clean
tools/make_issue.sh _puffy.cafe ../public/index.html

View File

@ -1,13 +0,0 @@
#!/bin/sh
die() {
echo "$1"
exit 1
}
test -d ../public/ || die "You must run this from openbsd-webzine/current"
find ../public/ -name '*.html' -or -name '*.xml' | while read file
do
gzip -9 -c "${file}" > "${file}.gz"
done