2020-11-26 13:23:00 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
VERSION=$(cat ~/bromite/build/RELEASE)
|
|
|
|
CURRENT_RELEASE=$(git -C ~/chromium/src/ rev-parse --verify refs/tags/$VERSION)
|
|
|
|
|
2021-04-28 16:32:53 +05:30
|
|
|
ALLPATCHS_E=$(git -C ~/chromium/src/ rev-list HEAD...$CURRENT_RELEASE)
|
2020-11-26 13:23:00 +05:30
|
|
|
|
|
|
|
mkdir ~/bromite/build/patches-new
|
|
|
|
|
|
|
|
NO_NAME=1
|
|
|
|
|
2021-04-28 16:32:53 +05:30
|
|
|
for patch in $ALLPATCHS_E; do
|
2020-11-26 13:23:00 +05:30
|
|
|
|
|
|
|
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | grep FILE: | sed 's/FILE://g' | sed 's/^[ \t]*//;s/[ \t]*$//')
|
2021-10-02 16:37:15 +05:30
|
|
|
if [[ "$PATCH_FILE" == *"Automated-domain-substitution"* ]]; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2021-04-28 16:32:53 +05:30
|
|
|
if [ -z "$PATCH_FILE" ]
|
2020-11-26 13:23:00 +05:30
|
|
|
then
|
2021-04-28 16:32:53 +05:30
|
|
|
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | tail -n 1)
|
|
|
|
if [[ "$PATCH_FILE" != *".patch" ]]; then
|
2022-09-07 15:13:26 +05:30
|
|
|
PATCH_FILE=00$(git -C ~/chromium/src/ show -s $patch | head -n 5 | tail -n 1 | xargs | tr " " - | tr [:punct:] -).patch
|
|
|
|
echo New Patch: ${PATCH_FILE}
|
2021-04-28 16:32:53 +05:30
|
|
|
fi
|
2020-11-26 13:23:00 +05:30
|
|
|
fi
|
|
|
|
|
2021-07-31 17:45:32 +05:30
|
|
|
bash ~/bromite-buildtools/export-single-patch.sh $patch $PATCH_FILE
|
2020-11-26 13:23:00 +05:30
|
|
|
|
|
|
|
done
|
2022-03-24 20:56:38 +05:30
|
|
|
|
|
|
|
PATCH_LIST=~/bromite/build/bromite_patches_list.txt
|
|
|
|
mkdir ~/bromite/build/patches-new/changed
|
|
|
|
mkdir ~/bromite/build/patches-new/contrib
|
|
|
|
for current_file in $(cat $PATCH_LIST); do
|
2022-03-25 00:59:25 +05:30
|
|
|
if [[ "$current_file" == *".patch" ]]; then
|
2022-03-24 21:28:45 +05:30
|
|
|
if [[ $current_file =~ ^changed/.* ]]; then
|
|
|
|
mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/changed
|
|
|
|
elif [[ $current_file =~ ^contrib/.* ]]; then
|
2022-04-12 13:41:25 +05:30
|
|
|
mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/contrib || true
|
2022-03-24 21:28:45 +05:30
|
|
|
fi
|
2022-03-24 20:56:38 +05:30
|
|
|
fi
|
|
|
|
done
|