cd /Users/landabin/Desktop/tkgulp
rm -rf /Users/landabin/Desktop/tkgulp/src/www/*
rm -rf /Users/landabin/Desktop/tkgulp/dist/www/*
cp -r /usr/local/data/workspace/PlanY/WebContent/* ./src/www
#compress rhtml
gulp minhh
gulp minHtml
gulp mincss
gulp minjs
cd dist
rm www.zip
zip -rwww.zipwww
zip -d www.zip *DS_Store
#zip -d www.zip *help.pdf
md5 www.zip |awk -F "=" '{print $2}' |tr -d ' ' >www.md5
sftproot@mytaoke.cn << EOF
cd /opt/apache-tomcat-8.0.36/webapps/PlanX
put www.md5
put www.zip
quit
EOF
#rm -f www.zip