Last active
July 26, 2019 13:49
Revisions
-
KushtrimPacaj revised this gist
Jul 26, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,4 +12,7 @@ echo \"Applying $fName\"\n\ patch -p1 --no-backup-if-mismatch < $rName\n\ croot > /dev/null\n\ echo \"---------------------------------\"\n\n"' \; >> applyPatches.sh chmod +x applyPatches.sh } -
KushtrimPacaj revised this gist
Jul 24, 2019 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,15 @@ function generateAospPatchScript(){ echo ". build/envsetup.sh > /dev/null" > applyPatches.sh find . -type f -name "*.patch" | sort -n | xargs -I '{}' sh -c '\ dName=$(dirname {}) ; \ rName=$(realpath {}) ; \ fName=$(basename $rName); \ echo "\n\ cd $dName\n\ echo \"Entering directory: \$PWD\"\n\ echo \"Applying $fName\"\n\ patch -p1 --no-backup-if-mismatch < $rName\n\ croot > /dev/null\n\ echo \"---------------------------------\"\n\n"' \; >> applyPatches.sh } -
KushtrimPacaj renamed this gist
Jul 24, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
KushtrimPacaj created this gist
Jul 24, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ function generateAospPatchScript(){ echo ". build/envsetup.sh > /dev/null" > applyPatches.sh find . -type f -name "*.patch" -exec sh -c '\ dName=$(dirname {}) ; \ rName=$(realpath {}) ; \ fName=$(basename $rName); \ echo "\n\ cd $dName\n\ echo \"Entering directory: \$PWD\"\n\ echo \"Applying $fName\"\n\ patch -p1 < $rName\n\ croot > /dev/null\n\ echo \"---------------------------------\"\n\n"' \; >> applyPatches.sh }