# svn checkout https://svn.coding.net/melon-team/basketball/design/trunk/10conf/program/exe/ ../csv/
# svn update ../csv/
# rm -fr hash.js
# svn export https://svn.coding.net/melon-team/basketball/design/trunk/10conf/program/exe/CSV.js hash.js
# p=res_$1
# echo $p
# node ./hash.js -$p

#!/bin/bash
csv_remote=svn://47.101.203.92/trunk/10conf/program/exe/CSV.js
remote=root@47.101.203.92
remote_root=/data/web/nba
local_root=./
hash_path=banshu
ssh $remote "cd $remote_root;sh /data/soft/shell/hash.sh $remote_root/$hash_path"
echo scp $remote:$remote_root/$hash_path.hash $local_root/$hash_path
scp $remote:$remote_root/$hash_path.hash $local_root/$(dirname $hash_path)
rm -fr CSV.js
svn export $csv_remote
node ./CSV.js --folder_update ./$hash_path
rm -fr CSV.js