forked from solene/openbsd-webzine
Replace the compression script with new gzip -k feature
This commit is contained in:
parent
9ab38bb686
commit
fffcee44aa
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user