Mercurial > cgi-bin > hgweb.cgi > JpegWasher
annotate setup.cmd @ 46:5de364cb2847
Doc tweaks.
author | David Barts <davidb@stashtea.com> |
---|---|
date | Mon, 04 May 2020 11:06:14 -0700 |
parents | 6999afa6fff3 |
children |
rev | line source |
---|---|
22 | 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 | |
42 | 10 set LAUNCH4J_HOME=C:\Program Files (x86)\Launch4j |
44
6999afa6fff3
Update Building instructions; minor build system bug fixes.
David Barts <davidb@stashtea.com>
parents:
42
diff
changeset
|
11 set OSDEP_HOME=..\Osdep |
22 | 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 |