comparison setup.cmd @ 22:cd2ca4727b7f

Builds under Windows.
author davidb
date Thu, 16 Apr 2020 11:10:39 -0700
parents
children 4076f1bbf21d
comparison
equal deleted inserted replaced
21:539c3641c539 22:cd2ca4727b7f
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
11 rem For each directory, fix PATH if needed.
12 call :fixpath "%JRE_HOME%"
13 call :fixpath "%KOTLIN_HOME%"
14 call :fixpath "%ANT_HOME%"
15 exit/b 0
16
17 rem The rest of this file probably won't need changing.
18
19 rem Subroutine to fix up path, if needed. So we don't mindlessly grow
20 rem PATH.
21 :fixpath
22 set bindir=%~1\bin
23 if not exist "%bindir%\" goto amf
24 set p2=%path%
25 :loop
26 for /f "tokens=1* delims=;" %%A in ("%p2%") do (
27 set first=%%A
28 set rest=%%B
29 )
30 if "%first%"=="%bindir%" goto amf
31 if "%rest%"=="" goto notfound
32 set p2=%rest%
33 goto loop
34 :notfound
35 echo Adding "%bindir%" to PATH.
36 set path=%bindir%;%path%
37 :amf
38 set bindir=
39 set p2=
40 set first=
41 set rest=
42 exit/b 0