do not export the patch if it is tagged with NOEXPORT
This commit is contained in:
parent
42a26fd1db
commit
873b33fe1b
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user