OSDN Git Service

Add external diff merge and udiff Setting at setting Page
[tortoisegit/TortoiseGitJp.git] / doc / UploadDocs.bat
1 @echo off\r
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
7 \r
8 rem example docserverlogin.bat file\r
9 rem \r
10 rem @echo off\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
16 \r
17 \r
18 call docserverlogin.bat\r
19 \r
20 cd output\r
21 del docs.zip\r
22 \r
23 %ZIP% a -r -x!*.pdf -x!*.chm -tzip docs.zip *\r
24 \r
25 %PSCP% -r -l %USERNAME% -pw %PASSWORD% docs.zip www.tortoisesvn.net:/var/www/vhosts/default/htdocs/docs\r
26 \r
27 if "%1"=="" (\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
29 ) else (\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
31 )\r
32 del docs.zip\r
33 \r
34 cd ..\r