comparison setup.cmd @ 0:e0efe7848130

Initial commit. Untested!
author David Barts <davidb@stashtea.com>
date Thu, 16 Jul 2020 19:57:23 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e0efe7848130
1 @echo off
2 rem -*- coding: windows-1252 -*-
3
4 rem Basic directory stuff, edit as needed.
5 set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
6 set JRE_HOME=C:\Program Files\Java\jdk1.8.0_241
7 set KOTLIN_HOME=C:\Users\David Barts\java\kotlin-compiler-1.3.71\kotlinc
8 set ANT_HOME=C:\Users\David Barts\java\apache-ant-1.10.7
9 set EXIV2_HOME=C:\Users\David Barts\Downloads\exiv2-0.27.2-2017msvc64\exiv2-0.27.2-2017msvc64
10 set LAUNCH4J_HOME=C:\Program Files (x86)\Launch4j
11 set OSDEP_HOME=..\Osdep
12
13 rem For each directory, fix PATH if needed.
14 call :fixpath "%JRE_HOME%"
15 call :fixpath "%KOTLIN_HOME%"
16 call :fixpath "%ANT_HOME%"
17 exit/b 0
18
19 rem The rest of this file probably won't need changing.
20
21 rem Subroutine to fix up path, if needed. So we don't mindlessly grow
22 rem PATH.
23 :fixpath
24 set bindir=%~1\bin
25 if not exist "%bindir%\" goto amf
26 set p2=%path%
27 :loop
28 for /f "tokens=1* delims=;" %%A in ("%p2%") do (
29 set first=%%A
30 set rest=%%B
31 )
32 if "%first%"=="%bindir%" goto amf
33 if "%rest%"=="" goto notfound
34 set p2=%rest%
35 goto loop
36 :notfound
37 echo Adding "%bindir%" to PATH.
38 set path=%bindir%;%path%
39 :amf
40 set bindir=
41 set p2=
42 set first=
43 set rest=
44 exit/b 0