Skip to content

Commit

Permalink
patch: Separate projects name to external file
Browse files Browse the repository at this point in the history
* now you can reuse in other scripts

Signed-off-by: lindwurm <lindwurm.q@gmail.com>
  • Loading branch information
lindwurm committed Apr 1, 2023
1 parent 6d434c6 commit df03a4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions floko.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ apply_patch() {
git apply -p1 "${patch_dir}/${patch_file}.diff"
}

patch_dest_array=(bootable/recovery build/make build/soong frameworks/base lineage-sdk packages/apps/crDroidSettings packages/apps/LineageParts packages/apps/Settings packages/apps/SetupWizard vendor/addons vendor/lineage)

for patch_dest in ${patch_dest_array[@]}; do
for patch_dest in $(cat patch.txt); do
apply_patch ${patch_dest}

if [ "${patch_dest}" = "frameworks/base" ]; then
Expand Down
11 changes: 11 additions & 0 deletions patch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bootable/recovery
build/make
build/soong
frameworks/base
lineage-sdk
packages/apps/crDroidSettings
packages/apps/LineageParts
packages/apps/Settings
packages/apps/SetupWizard
vendor/addons
vendor/lineage

0 comments on commit df03a4f

Please sign in to comment.