add back preserving timestamp for zopfli

This commit is contained in:
Daniel Micay 2021-09-30 16:03:25 -04:00
parent 3278595b30
commit 49fc7831de

View File

@ -45,5 +45,11 @@ brotli_k() {
} }
export -f brotli_k export -f brotli_k
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_k zopfli :::: - parallel -q ::: brotli_k zopfli_preserve_time :::: -