pf=update_vn_$1
zf=$pf.tar.gz

mkdir ${pf}
cp -rv assets ./${pf}
cp -rv src ./${pf}
cp -rv jsb-adapter ./${pf}
cp -rv main.js ./${pf}
cp -rv plat_info.json ./${pf}
cp -rv project.json ./${pf}
cp -rv project_base.manifest ./${pf}
cp -rv project_empty.manifest ./${pf}
cp -rv version_base.manifest ./${pf}
cp -rv version_empty.manifest ./${pf}
cp -rv skip.png ./${pf}
cp -rv ../configs.bin ./${pf}

tar -czf $zf $pf

scp -r $zf root@103.68.254.66:/home/tdtk/public/p21_update

ssh -Tq root@103.68.254.66 << EOF
	cd /home/tdtk/public/p21_update
	tar -xzvf $zf	
    rm $zf
EOF

rm $zf
rm -rf $pf

