You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Neper/tests/repoman-new-or-changed-ebui...

22 lines
625 B

#!/usr/bin/env bash
# Determine which ebuilds are new or changed and run repoman on their packages
set -e
if [ "${DEBUG}" = True ]; then
set -x
fi
SCRIPT_PATH=$(dirname "$0")
PACKAGES=""
# Get list of new or changed packages
IFS=" " read -ra EBUILDS <<< "$("${SCRIPT_PATH}/get-new-or-changed-ebuilds.sh")"
mapfile -t PACKAGES < <(for EBUILD in "${EBUILDS[@]}"; do dirname "${EBUILD}"; done | sort -u)
if [ ${#PACKAGES[@]} -eq 0 ]; then
echo "No changed packages found, skipping repoman check"
else
echo "Running repoman on the following packages:" "${PACKAGES[@]}"
"${SCRIPT_PATH}/repoman.sh" "${PACKAGES[@]}"
fi