brotli/scripts/download_testdata.sh
Evgenii Kliuchnikov ce9c16e882 upload full testdata archive
PiperOrigin-RevId: 565017690
2023-09-13 05:13:57 -07:00

8 lines
283 B
Bash
Executable File

#!/bin/bash
set -x
BROTLI_TAG=${BROTLI_TAG:-dev/null}
BROTLI_TAG="${BROTLI_TAG//'/'/%2F}" # Escaping for tag names with slash (e.g. "dev/null")
ARCHIVE=testdata.txz
curl -L https://github.com/google/brotli/releases/download/${BROTLI_TAG}/${ARCHIVE} -o ${ARCHIVE}
tar xvfJ ${ARCHIVE}