Merge pull request #2131 from blocktrron/refresh-patches

build: improve refreshing patches
This commit is contained in:
David Bauer 2020-10-16 17:14:00 +02:00 committed by GitHub
commit b6096523c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,13 @@ update-patches: FORCE
scripts/update-patches.sh scripts/update-patches.sh
scripts/patch.sh scripts/patch.sh
refresh-patches: FORCE
@
export $(GLUON_ENV)
scripts/update.sh
scripts/patch.sh
scripts/update-patches.sh
update-feeds: FORCE update-feeds: FORCE
@$(GLUON_ENV) scripts/feeds.sh @$(GLUON_ENV) scripts/feeds.sh

View File

@ -21,6 +21,7 @@ for module in $GLUON_MODULES; do
for commit in $(git rev-list --reverse --no-merges base..patched); do for commit in $(git rev-list --reverse --no-merges base..patched); do
(( ++n )) (( ++n ))
mkdir -p "${GLUON_PATCHESDIR}/$module" mkdir -p "${GLUON_PATCHESDIR}/$module"
echo "Updating: $(git log --format=%s -n 1 "$commit")"
git -c core.abbrev=40 show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' --no-renames --binary "$commit" > "${GLUON_PATCHESDIR}/$module/$(printf '%04u' "$n")-$(git show -s --pretty=format:%f "$commit").patch" git -c core.abbrev=40 show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' --no-renames --binary "$commit" > "${GLUON_PATCHESDIR}/$module/$(printf '%04u' "$n")-$(git show -s --pretty=format:%f "$commit").patch"
done done
done done