annotate setup.cmd @ 24:3d9c36307704

Should make the wait cursor appear, but doesn't. Java bug?
author davidb
date Thu, 16 Apr 2020 19:26:37 -0700
parents cd2ca4727b7f
children 4076f1bbf21d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
1 @echo off
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
2 rem -*- coding: windows-1252 -*-
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
3
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
4 rem Basic directory stuff, edit as needed.
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
5 set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
6 set JRE_HOME=C:\Program Files\Java\jdk1.8.0_241
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
7 set KOTLIN_HOME=C:\Users\David Barts\java\kotlin-compiler-1.3.71\kotlinc
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
8 set ANT_HOME=C:\Users\David Barts\java\apache-ant-1.10.7
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
9 set EXIV2_HOME=C:\Users\David Barts\Downloads\exiv2-0.27.2-2017msvc64\exiv2-0.27.2-2017msvc64
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
10
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
11 rem For each directory, fix PATH if needed.
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
12 call :fixpath "%JRE_HOME%"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
13 call :fixpath "%KOTLIN_HOME%"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
14 call :fixpath "%ANT_HOME%"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
15 exit/b 0
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
16
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
17 rem The rest of this file probably won't need changing.
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
18
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
19 rem Subroutine to fix up path, if needed. So we don't mindlessly grow
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
20 rem PATH.
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
21 :fixpath
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
22 set bindir=%~1\bin
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
23 if not exist "%bindir%\" goto amf
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
24 set p2=%path%
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
25 :loop
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
26 for /f "tokens=1* delims=;" %%A in ("%p2%") do (
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
27 set first=%%A
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
28 set rest=%%B
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
29 )
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
30 if "%first%"=="%bindir%" goto amf
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
31 if "%rest%"=="" goto notfound
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
32 set p2=%rest%
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
33 goto loop
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
34 :notfound
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
35 echo Adding "%bindir%" to PATH.
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
36 set path=%bindir%;%path%
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
37 :amf
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
38 set bindir=
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
39 set p2=
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
40 set first=
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
41 set rest=
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
42 exit/b 0