rhel-system-roles/vendoring-prep.inc
Rich Megginson a7babdc101 fix: adding latest c9s rhel-system-roles srpm to start c10s branch
Adding the latest c9s rhel-system-roles to be the start of the c10s branch
2024-04-19 08:27:32 -06:00

13 lines
428 B
PHP

# Untar vendored collection tarballs to corresponding directories
for file in %{SOURCE801} %{SOURCE901} %{SOURCE902}; do
if [[ "$(basename $file)" =~ ([^-]+)-([^-]+)-(.+).tar.gz ]]; then
ns=${BASH_REMATCH[1]}
name=${BASH_REMATCH[2]}
ver=${BASH_REMATCH[3]}
mkdir -p .external/$ns/$name
pushd .external/$ns/$name > /dev/null
tar xfz "$file"
popd > /dev/null
fi
done