зеркало из https://github.com/mozilla/gecko-dev.git
23 строки
417 B
Bash
23 строки
417 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -x
|
||
|
|
||
|
[ -z "$1" ] && echo Missing argument && exit 1
|
||
|
|
||
|
dir=$(dirname "$1")
|
||
|
name=$(basename "$1")
|
||
|
|
||
|
case "$(uname -s)" in
|
||
|
Darwin)
|
||
|
TAR_FLAGS=--no-fflags
|
||
|
;;
|
||
|
*)
|
||
|
TAR_FLAGS=
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
(cd "$dir"; find "$name"/* -not -type d -print0 | tar $TAR_FLAGS -cf - --null -T -) | python3 $GECKO_PATH/taskcluster/scripts/misc/zstdpy > "$name.tar.zst"
|
||
|
|
||
|
mkdir -p "$UPLOAD_DIR"
|
||
|
mv "$name.tar.zst" "$UPLOAD_DIR"
|