annotate setup.cmd @ 43:8aada13933c6

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