Repository navigation
Expand file tree
/
Copy pathbuild.bat
More file actions
62 lines (52 loc) · 1.56 KB
/
Copy pathbuild.bat
File metadata and controls
62 lines (52 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
rem Inno Setup
rem Copyright (C) 1997-2026 Jordan Russell
rem Portions by Martijn Laan
rem For conditions of distribution and use, see LICENSE.TXT.
rem
rem Batch file to prepare isscint.dll
rem
rem This batch files does the following things:
rem -Compile x86 Scintilla.dll
rem -Compile x64 Scintilla.dll
rem -Copy them to issrc Files
rem -Synch them to issrc Projects\Bin (optional)
setlocal
cd /d %~dp0
if exist buildsettings.bat goto buildsettingsfound
:buildsettingserror
echo buildsettings.bat is missing or incomplete. It needs to be created
echo with the following line, adjusted for your system:
echo.
echo set ISSRCROOT=C:\Issrc
goto failed2
:buildsettingsfound
set ISSRCROOT=
call .\buildsettings.bat
if "%ISSRCROOT%"=="" goto buildsettingserror
call .\compile.bat x86 %1
if errorlevel 1 goto failed
move /Y bin\Scintilla.dll bin\Scintilla-x86.dll
if errorlevel 1 goto failed
echo Compiling x86 done
call .\compile.bat x64 %1
if errorlevel 1 goto failed
move /Y bin\Scintilla.dll bin\Scintilla-x64.dll
if errorlevel 1 goto failed
echo Compiling x64 done
echo - Copying files to issrc\Files
copy bin\Scintilla-x86.dll "%ISSRCROOT%\Files\isscint.dll"
if errorlevel 1 goto failed
copy bin\Scintilla-x64.dll "%ISSRCROOT%\Files\isscint-x64.dll"
if errorlevel 1 goto failed
if "%1"=="nosynch" goto nosynch
if "%2"=="nosynch" goto nosynch
call "%ISSRCROOT%\Projects\Bin\synch-isfiles.bat" nopause
if errorlevel 1 goto failed
:nosynch
echo All done!
exit /b 0
:failed
echo *** FAILED ***
:failed2
exit /b 1