remove unnecessary zopfli wrapper

The timestamps of the generated static files are no longer used.
This commit is contained in:
Daniel Micay 2024-03-06 15:03:20 -05:00
parent 93cf3596cc
commit 5111d8f1fb

View File

@ -92,11 +92,5 @@ for file in static-tmp/**/*.@(atom|xml); do
xmllint --noblanks "$file" --output "$file" xmllint --noblanks "$file" --output "$file"
done done
zopfli_preserve_time() {
zopfli "$1"
touch -r "$1" "$1.gz"
}
export -f zopfli_preserve_time
find static-tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' | find static-tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' |
parallel -q ::: brotli zopfli_preserve_time :::: - parallel -q ::: brotli zopfli :::: -