diff options
| author | Moyster <oysterized@gmail.com> | 2016-11-06 18:25:36 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-11-06 18:25:36 +0100 |
| commit | daeec03ecff732ca8a78cc40a6eabb4cb3df8355 (patch) | |
| tree | 82d241545c50f48c0fc5d79166e171ccac23a768 | |
| parent | a5bf06a7112f47fff49472588d413c068d7f3d96 (diff) | |
| download | android_device_mt6753_common-daeec03ecff732ca8a78cc40a6eabb4cb3df8355.tar.gz | |
add uninstall script for patches
| -rw-r--r-- | patches/uninstall.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/uninstall.sh b/patches/uninstall.sh new file mode 100644 index 0000000..c61398c --- /dev/null +++ b/patches/uninstall.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +echo $1 +rootdirectory="$PWD" +# --------------------------------- + +dirs="frameworks/av frameworks/base frameworks/opt/telephony hardware/libhardware hardware/libhardware_legacy packages/apps/Settings packages/services/telephony system/core system/netd" + +VENDOR=meizu +DEVICE=m2note + +for dir in $dirs ; do + cd $rootdirectory + cd $dir + echo -e "Cleaning $dir patches...\n" + git reset --hard && git clean -df +done + +# ----------------------------------- +echo -e "Done !\n" +cd $rootdirectory + |
