gamja: nicer find expression
This commit is contained in:
@@ -49,14 +49,10 @@ in
|
|||||||
${xorg.lndir}/bin/lndir ${pkg}/ $out/
|
${xorg.lndir}/bin/lndir ${pkg}/ $out/
|
||||||
|
|
||||||
find $out \
|
find $out \
|
||||||
-name '*.css' -or \
|
-regextype posix-extended \
|
||||||
-name '*.js' -or \
|
-iregex '.*\.(css|js|json|map|webmanifest|html)' | \
|
||||||
-name '*.json' -or \
|
|
||||||
-name '*.map' -or \
|
|
||||||
-name '*.webmanifest' -or \
|
|
||||||
-name '*.html' | \
|
|
||||||
tee >(xargs -n1 -P''$(nproc) ${zopfli}/bin/zopfli) | \
|
tee >(xargs -n1 -P''$(nproc) ${zopfli}/bin/zopfli) | \
|
||||||
xargs -n1 -P''$(nproc) ${brotli}/bin/brotli
|
xargs -n1 -P''$(nproc) ${brotli}/bin/brotli
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user