Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Use BinaryBuilder for all available dependencies by default #31441

Merged
merged 20 commits into from
Mar 30, 2019
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add ability for contrib/refresh_bb_tarballs.sh to refresh a subset
  • Loading branch information
staticfloat committed Mar 27, 2019
commit 99a8d03ba953e52141a23c6f115a7649090fa7df
17 changes: 17 additions & 0 deletions contrib/refresh_bb_tarballs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh

# Invoke this with no arguments to refresh all tarballs, or with a project name to refresh only that project.
#
# Example:
# ./refresh_bb_tarballs.sh gmp

# Get this list via:
# using BinaryBuilder
# print("TRIPLETS=\"$(join(triplet.(BinaryBuilder.supported_platforms()), " "))\"")
Expand All @@ -9,6 +14,18 @@ TRIPLETS="i686-linux-gnu x86_64-linux-gnu aarch64-linux-gnu arm-linux-gnueabihf
BB_PROJECTS=""
BB_GCC_EXPANDED_PROJECTS="llvm openblas suitesparse openlibm"

# If we've been given a project name, filter down to that one:
if [ -n ${1} ]; then
case "${BB_PROJECTS}" in
*${1}*) BB_PROJECTS="${1}" ;;
*) BB_PROJECTS="" ;;
esac
case "${BB_GCC_EXPANDED_PROJECTS}" in
*${1}*) BB_GCC_EXPANDED_PROJECTS="${1}" ;;
*) BB_GCC_EXPANDED_PROJECTS="" ;;
esac
fi

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

Expand Down