2021-06-19 15:16:24 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
RED='\033[0;31m'
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
|
2021-07-08 16:21:53 +05:30
|
|
|
sudo apt install sed
|
2021-06-19 15:16:24 +05:30
|
|
|
|
|
|
|
cd chromium/src
|
|
|
|
|
|
|
|
echo -e ${RED} ------- apply patchs ${NC}
|
|
|
|
for file in $(cat ../../bromite/build/bromite_patches_list.txt) ; do
|
2021-12-04 23:57:03 +05:30
|
|
|
|
2022-03-25 11:56:43 +05:30
|
|
|
if [[ "$file" == *".patch" ]]; then
|
2021-12-06 19:01:09 +05:30
|
|
|
#if [[ "$file" == *"Automated-domain-substitution"* ]]; then
|
|
|
|
# echo -e ${RED} " -> Excluding $file" ${NC}
|
|
|
|
# continue
|
|
|
|
#fi
|
2021-12-04 23:57:03 +05:30
|
|
|
|
2021-06-19 15:16:24 +05:30
|
|
|
echo -e ${RED} " -> Apply $file" ${NC}
|
|
|
|
|
2022-03-25 13:28:27 +05:30
|
|
|
REPL="0,/^---/s//FILE:"$(basename $file)"\n---/"
|
2021-06-19 15:16:24 +05:30
|
|
|
cat ../../bromite/build/patches/$file | sed $REPL | git am
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
echo -e "Error on ../../bromite/build/patches/${file}"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo " "
|
2022-03-25 11:56:43 +05:30
|
|
|
fi
|
|
|
|
|
2021-06-19 15:16:24 +05:30
|
|
|
done
|