-
Notifications
You must be signed in to change notification settings - Fork 3
/
build-plugin32.command
executable file
·46 lines (38 loc) · 1.42 KB
/
build-plugin32.command
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
#!/bin/sh
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# + Example build script for OS X +
# + +
# + Change the following assignments to adapt them to +
# + your local settings: +
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# The directory where the DLL will be built
build_dir="/tmp"
# The FileMaker extension directory
target_dir="/Applications/FileMaker Pro 11 Advanced/Extensions"
# The delivery script
script="${HOME}/Lisp/fm-plugin-tools/deliver.lisp"
# The LispWorks executable
lispworks="/Applications/LispWorks 6.0/LispWorks.app/Contents/MacOS/lispworks-6-0-0-macos-universal"
# The name of the plug-in (the .fmplugin file)
name=FMPLisp
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# + Don't change anything below this point. +
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cd "$build_dir"
if [ $? -eq 0 ]
then
"$lispworks" -build "$script" "$name" "$build_dir"
if [ $? -eq 0 ]
then
rm -rf "$target_dir/$name.fmplugin"
mv "$build_dir/$name.fmplugin" "$target_dir/$name.fmplugin"
if [ $? -ne 0 ]
then
echo "Couldn't copy the bundle to $target_dir."
fi
else
echo "Couldn't build the loadable bundle."
fi
else
echo "Couldn't change to directory $build_dir."
fi