Skip to content

Commit

Permalink
update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gorden5566 committed May 1, 2017
1 parent 50cf8c6 commit 094bd73
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions install.sh
Expand Up @@ -5,23 +5,23 @@ DESTDIR=~/bitbucket/rt-n56u

ROOTDIR=`pwd`

if [ ! -d "$DESTDIR" ] ; then
echo "Target project directory not exists! Terminate."
if [ ! -d "${DESTDIR}" ] ; then
echo "Target project doesn't exist! Terminate!!!"
exit 1
fi

copyDict(){
echo "--------------开始复制汉化文件------------------"
if [ -d "$ROOTDIR/trunk/user/" ] ; then
cp -fRv "$ROOTDIR/trunk/user/" "$DESTDIR/trunk/"
echo "--------------开始复制语言文件------------------"
if [ -d "${ROOTDIR}/trunk/user/" ] ; then
cp -fRv "${ROOTDIR}/trunk/user/" "${DESTDIR}/trunk/"
fi
echo "--------------复制汉化文件结束------------------"
echo "--------------复制语言文件结束------------------"
}

copyRouteConfig(){
echo "--------------开始复制路由器适配文件------------------"
if [ -d "$ROOTDIR/trunk/configs/" ] ; then
cp -fRv "$ROOTDIR/trunk/configs/" "$DESTDIR/trunk/"
if [ -d "${ROOTDIR}/trunk/configs/" ] ; then
cp -fRv "${ROOTDIR}/trunk/configs/" "${DESTDIR}/trunk/"
fi
echo "--------------复制路由器适配文件结束------------------"
}
Expand All @@ -36,7 +36,7 @@ do
echo " [3] 退出"
echo "-----------------------------"
read option
case $option in
case ${option} in
1) copyDict
;;
2) copyRouteConfig
Expand Down

0 comments on commit 094bd73

Please sign in to comment.