Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit df03a4f

Browse files
committed
patch: Separate projects name to external file
* now you can reuse in other scripts Signed-off-by: lindwurm <lindwurm.q@gmail.com>
1 parent 6d434c6 commit df03a4f

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

floko.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ apply_patch() {
1111
git apply -p1 "${patch_dir}/${patch_file}.diff"
1212
}
1313

14-
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)
15-
16-
for patch_dest in ${patch_dest_array[@]}; do
14+
for patch_dest in $(cat patch.txt); do
1715
apply_patch ${patch_dest}
1816

1917
if [ "${patch_dest}" = "frameworks/base" ]; then

patch.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
bootable/recovery
2+
build/make
3+
build/soong
4+
frameworks/base
5+
lineage-sdk
6+
packages/apps/crDroidSettings
7+
packages/apps/LineageParts
8+
packages/apps/Settings
9+
packages/apps/SetupWizard
10+
vendor/addons
11+
vendor/lineage

0 commit comments

Comments
 (0)