defBranch='2ic'
/*sprintf2 showCurBranchStr 'default branch is:%s'#13#10 defBranch
dispstr showCurBranchStr*/
sprintf2 boxTitleStr 'input target compile branch(empty->using default:%s)' defBranch
inputbox boxTitleStr 'which branch do you want to compile and donwnload?'
strcompare inputstr ""
uInputBranch=inputstr
if 0 = result then
uInputBranch=defBranch
endif
sprintf2 cdStr 'cd /hoce/%s/' uInputBranch
sprintf2 waitCdStr 'alBace/%s$' uInputBranch
sprintf2 winscpStr '"C:\Program Files (x86)\WinSCP\WinSCP.exe" /console /command "option batch continue" "option confirm off" "open sftp://iam:1@192.168.56.101:22" "option transfer binary" "get /hoce/%s/outpuage/apde.bin C:\maBoard\" "exit" /log=C:\mwinscp.log' uInputBranch
sendln cdStr
wait waitCdStr
sendln 'make clean && make'
wait 'package_.bin done!'
exec winscpStr