2 rem run this batch file to upload the docs to our sourceforge server
\r
3 rem to make this work, you have to create a file "docserverlogin.bat"
\r
4 rem which sets the variables USERNAME and PASSWORD, and also set the PSCP
\r
5 rem variable to point to your scp program the PLINK variable to the plink
\r
6 rem program and the ZIP variable to your zip program
\r
8 rem example docserverlogin.bat file
\r
11 rem set USERNAME=myname
\r
12 rem set PASSWORD=mypassword
\r
13 rem set PsCP="C:\Programme\PuttY\pscp.exe"
\r
14 rem set PLINK="C:\Programme\Putty\plink.exe"
\r
15 rem set ZIP="C:\Programme\7-zip\7z.exe"
\r
18 call docserverlogin.bat
\r
23 %ZIP% a -r -x!*.pdf -x!*.chm -tzip docs.zip *
\r
25 %PSCP% -r -l %USERNAME% -pw %PASSWORD% docs.zip www.tortoisesvn.net:/var/www/vhosts/default/htdocs/docs
\r
28 %PLINK% www.tortoisesvn.net -l %USERNAME% -pw %PASSWORD% unzip -o /var/www/vhosts/default/htdocs/docs/docs.zip -d /var/www/vhosts/default/htdocs/docs/nightly;rm -f /var/www/vhosts/default/htdocs/docs/docs.zip
\r
30 %PLINK% www.tortoisesvn.net -l %USERNAME% -pw %PASSWORD% unzip -o /var/www/vhosts/default/htdocs/docs/docs.zip -d /var/www/vhosts/default/htdocs/docs/release;rm -f /var/www/vhosts/default/htdocs/docs/docs.zip
\r