Skip to content

Commit

Permalink
add configure-all and build-all
Browse files Browse the repository at this point in the history
  • Loading branch information
cwharris committed Aug 22, 2023
1 parent 801329b commit 658da3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,14 @@ generate_scripts() {

unset cpp_name_to_path;

# Generate a script to clone all repos
(
NAMES="${repo_name_all[@]}" \
SCRIPT="clone" \
generate_all_script ;
) || true;
for script in "clone" "configure" "build"; do
# Generate a script to run a script for all repos
(
NAMES="${repo_name_all[@]}" \
SCRIPT="${script}" \
generate_all_script ;
) || true;
done;
}

if test -n "${rapids_build_utils_debug:-}"; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
clone_all() {
${SCRIPT}_all() {
set -euo pipefail;

for name in $NAMES; do
clone-$name
$SCRIPT-$name
done;
}

if [[ -n "$devcontainer_utils_debug" ]]; then
PS4="+ ${BASH_SOURCE[0]}:\${LINENO} "; set -x;
fi

clone_all "$@";
${SCRIPT}_all "$@";

0 comments on commit 658da3f

Please sign in to comment.