mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
9696a1e8d2
At the same time, make the pack.sh script more verbose. Differential Revision: https://phabricator.services.mozilla.com/D167769
25 lines
443 B
Bash
Executable File
25 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
set -e
|
|
set -o pipefail
|
|
|
|
[ -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 -cvf - --null -T -) | python3 $GECKO_PATH/taskcluster/scripts/misc/zstdpy > "$name.tar.zst"
|
|
|
|
mkdir -p "$UPLOAD_DIR"
|
|
mv "$name.tar.zst" "$UPLOAD_DIR"
|