2022-02-25 18:57:13 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
VERSION=$(cat ~/bromite/build/RELEASE)
|
|
|
|
CURRENT_RELEASE=$(git -C ~/chromium/src/ rev-parse --verify refs/tags/$VERSION)
|
|
|
|
|
|
|
|
ALLPATCHS_E=$(git -C ~/chromium/src/ rev-list HEAD...$CURRENT_RELEASE)
|
|
|
|
|
|
|
|
mkdir ~/bromite/build/patches-new
|
|
|
|
rm ~/bromite/build/patches-new/patch-list
|
|
|
|
|
|
|
|
NO_NAME=1
|
|
|
|
|
|
|
|
for patch in $ALLPATCHS_E; do
|
|
|
|
|
|
|
|
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | grep FILE: | sed 's/FILE://g' | sed 's/^[ \t]*//;s/[ \t]*$//')
|
|
|
|
if [[ "$PATCH_FILE" == *"Automated-domain-substitution"* ]]; then
|
|
|
|
continue
|
|
|
|
fi
|
2023-03-24 20:17:50 +05:30
|
|
|
PATCH_MESSAGE=$(git -C ~/chromium/src/ show -s $patch)
|
|
|
|
if [[ $PATCH_MESSAGE == *NOEXPORT:* ]] ;
|
|
|
|
then
|
|
|
|
continue
|
|
|
|
fi
|
2022-09-07 17:09:36 +05:30
|
|
|
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
|
2022-02-25 18:57:13 +05:30
|
|
|
|
|
|
|
echo $PATCH_FILE >>~/bromite/build/patches-new/patch-list
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
tac ~/bromite/build/patches-new/patch-list >~/bromite/build/patches-new/zz-patch-list.txt
|
|
|
|
rm ~/bromite/build/patches-new/patch-list
|