Skip to content

Commit

Permalink
Merge pull request #3301 from grische/read-feeds-dynamically-update-m…
Browse files Browse the repository at this point in the history
…odules

scripts: update-modules: read feeds from modules
  • Loading branch information
blocktrron authored Jul 27, 2024
2 parents f7d41c5 + 2c9d982 commit 93b600a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/update-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ git diff --quiet ./modules || {
LOCAL_BRANCH=$(git branch --show-current)
[[ $LOCAL_BRANCH != *-updates ]] && LOCAL_BRANCH+=-updates

for MODULE in "OPENWRT" "PACKAGES_PACKAGES" "PACKAGES_ROUTING" "PACKAGES_GLUON"; do
for MODULE in "OPENWRT" ${GLUON_FEEDS}; do
if [[ $MODULE != "OPENWRT" ]]; then
MODULE=PACKAGES_${MODULE^^}
fi

_REMOTE_URL=${MODULE}_REPO
_REMOTE_BRANCH=${MODULE}_BRANCH
_LOCAL_HEAD=${MODULE}_COMMIT
Expand Down Expand Up @@ -48,7 +52,7 @@ for MODULE in "OPENWRT" "PACKAGES_PACKAGES" "PACKAGES_ROUTING" "PACKAGES_GLUON";

# prepare the commit message
# shellcheck disable=SC2001
MODULE=$(echo ${MODULE,,} | sed 's/packages_//')
MODULE=$(echo "${MODULE,,}" | sed 's/packages_//')
TITLE="modules: update ${MODULE}"
MESSAGE="$(mktemp)"
{
Expand All @@ -66,4 +70,3 @@ for MODULE in "OPENWRT" "PACKAGES_PACKAGES" "PACKAGES_ROUTING" "PACKAGES_GLUON";
# remove the checkout
rm -fr "${CHECKOUT}"
done

0 comments on commit 93b600a

Please sign in to comment.