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

Update naming conventions in tools/rapids-extract-conda-files #123

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
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
16 changes: 8 additions & 8 deletions tools/rapids-extract-conda-files
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ set -eo pipefail
export RAPIDS_SCRIPT_NAME="rapids-extract-conda-files"

if [ -z "$1" ]; then
rapids-echo-stderr "Must specify input argument: TARBALL_DIR"
rapids-echo-stderr "Must specify input argument: CONDA_PKG_DIR"
exit 1
fi

# dir that the extracted tarball are in
tarball_dir="$1"
# dir that the extracted conda packages are in
conda_pkg_dir="$1"
{
untar_dest=$(mktemp -d)
mkdir -p "${untar_dest}"
cd "${untar_dest}"
find "${tarball_dir}" \( -name "*.tar.bz2" -o -name "*.conda" \) -type f -print0 | xargs -0 -n 1 cph extract --dest .
conda_pkg_dest=$(mktemp -d)
mkdir -p "${conda_pkg_dest}"
cd "${conda_pkg_dest}"
find "${conda_pkg_dir}" \( -name "*.tar.bz2" -o -name "*.conda" \) -type f -print0 | xargs -0 -n 1 cph extract --dest .
} >&2
echo -n "${untar_dest}"
echo -n "${conda_pkg_dest}"