tooltool-download.sh (623B)
1 # Fetch a tooltool manifest. 2 3 cd $MOZ_FETCHES_DIR 4 5 TOOLTOOL_DL_FLAGS= 6 7 if [ -n "$UPLOAD_DIR" ]; then 8 TOOLTOOL_DL_FLAGS="${TOOLTOOL_DL_FLAGS=} --artifact-manifest $UPLOAD_DIR/toolchains.json" 9 fi 10 11 : TOOLTOOL_CACHE ${TOOLTOOL_CACHE:=/builds/worker/tooltool-cache} 12 export TOOLTOOL_CACHE 13 14 if [ -z "$TOOLTOOL_MANIFEST" ]; then 15 echo This script should not be used when there is no tooltool manifest set 16 exit 1 17 fi 18 19 ${GECKO_PATH}/mach artifact toolchain -v${TOOLTOOL_DL_FLAGS} --tooltool-manifest "${GECKO_PATH}/${TOOLTOOL_MANIFEST}"${TOOLTOOL_CACHE:+ --cache-dir ${TOOLTOOL_CACHE}} --retry 5 20 21 cd $OLDPWD