This repository was archived by the owner on Apr 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,27 @@ if [ "${ENABLE_CCACHE}" = "true" ]; then
6363 ccache -M 30G
6464fi
6565
66- # repo sync
66+ # -s stands for repo sync
6767if [ " ${sync} " = " true" ]; then
68- echo " [INFO] repo sync..."
69- repo sync -j$( nproc) -c --force-sync --no-clone-bundle --no-tags
70- echo -e " \n"
68+ # clone https://github.com/FlokoROM/patch into madoka/patch
69+ if [ $builddir = " floko" ] && [ -f ../madoka/patch/floko.sh ]; then
70+ echo " [INFO] reset and cleaning..."
71+ # WARNING: this command will reset all repositories under floko, any local changes will be lost
72+ repo forall -c git reset --hard
73+ repo forall -c git clean -fd
74+ echo " [INFO] repo sync..."
75+ repo sync -j$( nproc) -c --force-sync --no-clone-bundle --no-tags
76+ echo -e " \n"
77+ echo " [INFO] patching..."
78+ cd ../madoka/patch
79+ ./floko.sh
80+ echo " [INFO] done"
81+ cd ../../$builddir
82+ else
83+ echo " [INFO] repo sync..."
84+ repo sync -j$( nproc) -c --force-sync --no-clone-bundle --no-tags
85+ echo -e " \n"
86+ fi
7187fi
7288
7389# -n stands for SELINUX_IGNORE_NEVERALLOWS
You can’t perform that action at this time.
0 commit comments