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
continue
fi
PATCH_MESSAGE=$(git -C ~/chromium/src/ show -s $patch)
if [[ $PATCH_MESSAGE == *NOEXPORT:* ]] ;
then
continue
fi
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
fi

View File

@ -13,6 +13,13 @@ else
echo Exporting new $patch ~/bromite/build/patches-new/$PATCH_FILE
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
echo " exported"