do not export the patch if it is tagged with NOEXPORT

This commit is contained in:
Carmelo Messina 2023-03-24 15:47:50 +01:00
parent 42a26fd1db
commit 873b33fe1b
2 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,11 @@ for patch in $ALLPATCHS_E; do
if [[ "$PATCH_FILE" == *"Automated-domain-substitution"* ]]; then if [[ "$PATCH_FILE" == *"Automated-domain-substitution"* ]]; then
continue continue
fi fi
PATCH_MESSAGE=$(git -C ~/chromium/src/ show -s $patch)
if [[ $PATCH_MESSAGE == *NOEXPORT:* ]] ;
then
continue
fi
if [[ -z "$PATCH_FILE" ]]; then if [[ -z "$PATCH_FILE" ]]; then
PATCH_FILE=00$(git -C ~/chromium/src/ show -s $patch | head -n 5 | tail -n 1 | xargs | tr " " - | tr [:punct:] -).patch PATCH_FILE=00$(git -C ~/chromium/src/ show -s $patch | head -n 5 | tail -n 1 | xargs | tr " " - | tr [:punct:] -).patch
fi fi

View File

@ -13,6 +13,13 @@ else
echo Exporting new $patch ~/bromite/build/patches-new/$PATCH_FILE echo Exporting new $patch ~/bromite/build/patches-new/$PATCH_FILE
fi fi
PATCH_MESSAGE=$(git -C ~/chromium/src/ show -s $patch)
if [[ $PATCH_MESSAGE == *NOEXPORT:* ]] ;
then
echo Request NO export
exit 0
fi
git -C ~/chromium/src/ format-patch -1 --keep-subject --stdout --full-index --zero-commit --no-signature $patch >~/bromite/build/patches-new/$PATCH_FILE git -C ~/chromium/src/ format-patch -1 --keep-subject --stdout --full-index --zero-commit --no-signature $patch >~/bromite/build/patches-new/$PATCH_FILE
echo " exported" echo " exported"