1 | @echo off
|
---|
2 |
|
---|
3 | :: You can get a zipped version of SVN for windows (no installer, so no need for admin rights)
|
---|
4 | :: from https://sourceforge.net/projects/win32svn/files/1.8.17/apache24/, download the plain .zip file
|
---|
5 | :: e.g. svn-win32-1.8.17-ap24.zip, unzip and put its bin folder on PATH
|
---|
6 | :: None of the other suggestions worked from https://stackoverflow.com/questions/185693/svn-client-on-windows-without-administrator-rights
|
---|
7 |
|
---|
8 | ::set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_20
|
---|
9 | set JAVA_HOME=%CD%\zulu-jdk8-64bit
|
---|
10 | ::set JAVA_HOME=%CD%\zulu-jdk11-64bit
|
---|
11 |
|
---|
12 | if not exist "%JAVA_HOME%" (
|
---|
13 | echo %JAVA_HOME% not found. Exiting...
|
---|
14 | goto done
|
---|
15 | )
|
---|
16 | set PATH=%JAVA_HOME%\bin;%PATH%
|
---|
17 | echo + Set JAVA_HOME to local instance and updated PATH
|
---|
18 |
|
---|
19 |
|
---|
20 | ::set PERL_HOME=C:\strawberry-perl-64bit\perl
|
---|
21 | set _PERL_TOPLEVEL=%CD%\strawberry-perl5-64bit
|
---|
22 | set PERL_HOME=%_PERL_TOPLEVEL%\perl
|
---|
23 |
|
---|
24 | if not exist "%PERL_HOME%" (
|
---|
25 | echo %PERL_HOME% not found. Exiting...
|
---|
26 | goto done
|
---|
27 | )
|
---|
28 | echo + Set PERL_HOME to local instance and updated PATH
|
---|
29 |
|
---|
30 | set ANT_HOME=%CD%\apache-ant-1.9.5
|
---|
31 |
|
---|
32 | if not exist "%ANT_HOME%" (
|
---|
33 | echo %ANT_HOME% not found. Exiting...
|
---|
34 | goto done
|
---|
35 | )
|
---|
36 | set PATH=%PERL_HOME%\site\bin;%PERL_HOME%\bin;%_PERL_TOPLEVEL%\c\bin;%ANT_HOME%\bin;%PATH%
|
---|
37 | echo + Set ANT_HOME to local instance and updated PATH
|
---|
38 |
|
---|
39 | :: Unset local variable(s)
|
---|
40 | set _PERL_TOPLEVEL=
|
---|
41 |
|
---|
42 | :done
|
---|