Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 0e520337e5
Fetching contributors…

Cannot retrieve contributors at this time

executable file 56 lines (45 sloc) 1.121 kb
#!/bin/bash
#
# $1: dir for original miui app
# $2: dir for target miui app
#
XMLMERGYTOOL=$PORT_ROOT/tools/ResValuesModify/jar/ResValuesModify
GIT_APPLY=$PORT_ROOT/tools/git.apply
curdir=`pwd`
if [ $1 = "Phone" ];then
for file in `find $1/smali -name *.part`
do
filepath=`dirname $file`
filename=`basename $file .part`
dstfile="out/$filepath/$filename"
cat $file >> $dstfile
done
$XMLMERGYTOOL $1/res/values $2/res/values
fi
if [ $1 = "Mms" ];then
$XMLMERGYTOOL $1/res/values $2/res/values
fi
if [ $1 = "ThemeManager" ];then
$XMLMERGYTOOL $1/res/values $2/res/values
fi
if [ $1 = "MiuiHome" ];then
$XMLMERGYTOOL $1/res/values $2/res/values
fi
if [ $1 = "Settings" ];then
cp $1/Settings.part out/
cd out
$GIT_APPLY Settings.part
cd ..
for file in `find $2 -name *.rej`
do
echo "Settings patch fail"
exit 1
done
$XMLMERGYTOOL $1/res/values $2/res/values
fi
if [ $1 = "MiuiGallery" ];then
$XMLMERGYTOOL $1/res/values $2/res/values
fi
if [ $1 = "Contacts" ];then
$XMLMERGYTOOL $1/res/values-hdpi $2/res/values-hdpi
fi
Jump to Line
Something went wrong with that request. Please try again.