-
Notifications
You must be signed in to change notification settings - Fork 3
/
build-plugin32.cmd
45 lines (38 loc) · 1.38 KB
/
build-plugin32.cmd
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
@echo off
REM +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REM + Example build script for Windows +
REM + +
REM + Change the following `set' statements to adapt them to your +
REM + local settings: +
REM +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REM The directory where the DLL will be built
set build_dir="C:\Temp"
REM The FileMaker extension directory
set target_dir="C:\Program Files (x86)\FileMaker\FileMaker Pro 12 Advanced\Extensions"
REM The delivery script
set script="C:\Lisp\fm-plugin-tools\deliver.lisp"
REM The LispWorks executable
set lispworks="C:\Program Files (x86)\LispWorks\lispworks-6-1-0-x86-win32.exe"
REM The name of the plug-in (the .fmx file)
set name=FMPLisp
REM +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REM + Don't change anything below this point. +
REM +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cd %build_dir%
if errorlevel 1 (
echo Couldn't change to directory %build_dir%.
pause
) else (
%lispworks% -build %script% %name%
if errorlevel 1 (
echo Couldn't build DLL.
pause
) else (
copy /Y %name%.fmx %target_dir%
if errorlevel 1 (
echo Couldn't copy DLL into %target_dir%.
pause
)
del %name%.fmx
)
)