add uninstall script for patches

This commit is contained in:
Moyster 2016-11-06 18:25:36 +01:00
parent a5bf06a711
commit daeec03ecf
1 changed files with 22 additions and 0 deletions

22
patches/uninstall.sh Normal file
View File

@ -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