diff --git a/export-patch-list.sh b/export-patch-list.sh index 3c1277c..41ef2bf 100644 --- a/export-patch-list.sh +++ b/export-patch-list.sh @@ -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 diff --git a/export-single-patch.sh b/export-single-patch.sh index 648c27f..554fc5c 100644 --- a/export-single-patch.sh +++ b/export-single-patch.sh @@ -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"