mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
15 lines
325 B
Text
15 lines
325 B
Text
|
#!/usr/bin/env bash
|
||
|
set -e -o pipefail
|
||
|
|
||
|
SCRIPT_PATH=$(realpath "${BASH_SOURCE[0]}")
|
||
|
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
|
||
|
|
||
|
pushd /tmp
|
||
|
|
||
|
find public/ -type d | sed 's!^!compressed/!' | xargs mkdir --parents
|
||
|
|
||
|
find public/ -type f -print0 \
|
||
|
| xargs --null --max-args 20 --max-procs 10 "$SCRIPT_DIR/compress_batch_of_assets"
|
||
|
|
||
|
popd
|