forked from osu-crypto/SpOT-PSI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copySourceToLinux.ps1
20 lines (17 loc) · 1023 Bytes
/
copySourceToLinux.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$RemoteUserName='trieun'
$RemoteHostName='eve.eecs.oregonstate.edu'
$PrivateKey='C:\EvePrivatekey.ppk'
$SolutionDir=$PWD
$RemoteWorkingDir='/scratch/nini/prtyPSI'
# only files with these extensions will be copied
$FileMasks='**.cpp;**.c;**.h;*.bin,*.S,*.sh,*CMake*;*/Tools/*.txt;*/gsl/*;**.mak;thirdparty/linux/**.get;*/libOTe_Tests/testData/*.txt,*.get'
# everything in these folders will be skipped
$ExcludeDirs='.git/;thirdparty/;Debug/;Release/;x64/;ipch/;.vs/'
C:\tools\WinSCP.com /command `
"open $RemoteUserName@$RemoteHostName -privatekey=""$PrivateKey"""`
"call mkdir -p $RemoteWorkingDir"`
"synchronize Remote $SolutionDir $RemoteWorkingDir -filemask=""$FileMasks|$ExcludeDirs;"" -transfer=binary"`
"call mkdir -p $RemoteWorkingDir/cryptoTools/thirdparty/"`
"call mkdir -p $RemoteWorkingDir/cryptoTools/thirdparty/linux/"`
"synchronize remote $SolutionDir/cryptoTools/thirdparty/linux/ $RemoteWorkingDir/cryptoTools/thirdparty/linux/ -filemask=""**.get"" -transfer=binary"`
"exit"