Skip to content

Commit

Permalink
Add contrib/refresh_bb_tarballs.sh to aid in batch-grabbing BB hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jan 3, 2019
1 parent f0c3d78 commit 4d1fb54
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contrib/refresh_bb_tarballs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

# Get this list via:
# using BinaryBuilder
# print("TRIPLETS=\"$(join(triplet.(BinaryBuilder.supported_platforms()), " "))\"")
TRIPLETS="i686-linux-gnu x86_64-linux-gnu aarch64-linux-gnu arm-linux-gnueabihf powerpc64le-linux-gnu i686-linux-musl x86_64-linux-musl aarch64-linux-musl arm-linux-musleabihf x86_64-apple-darwin14 x86_64-unknown-freebsd11.1 i686-w64-mingw32 x86_64-w64-mingw32"

# These are the projects currently using BinaryBuilder:
BB_PROJECTS="llvm openblas"

# Get "contrib/" directory path
CONTRIB_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)

# For each triplet and each project, download the BB tarball and save its hash:
for triplet in $TRIPLETS; do
for proj in $BB_PROJECTS; do
PROJ="$(echo ${proj} | tr [a-z] [A-Z])"
make -C "$CONTRIB_DIR/../deps" USE_BINARYBUILDER_${PROJ}=1 ${PROJ}_BB_TRIPLET=${triplet} get-${proj}
done
done

0 comments on commit 4d1fb54

Please sign in to comment.