Fix make-array transforms.
[sbcl.git] / make-windows-installer.sh
1 #!/bin/sh
2
3 # This software is part of the SBCL system. See the README file for
4 # more information.
5 #
6 # This software is derived from the CMU CL system, which was
7 # written at Carnegie Mellon University and released into the
8 # public domain. The software is in the public domain and is
9 # provided with absolutely no warranty. See the COPYING and CREDITS
10 # files for more information.
11
12 if test -n "$WIX_PATH"; then
13     :
14 elif test -d "$PROGRAMFILES/WiX Toolset v3.7"; then
15     WIX_PATH="$PROGRAMFILES/WiX Toolset v3.7/bin"
16 elif test -d "$PROGRAMFILES/Windows Installer XML v3.5"; then
17     WIX_PATH="$PROGRAMFILES/Windows Installer XML v3.5/bin"
18 fi
19 echo "using $WIX_PATH"
20
21 . ./sbcl-pwd.sh
22 sbcl_pwd
23
24 cd output
25
26 "$SBCL_PWD/src/runtime/sbcl" --noinform --core "$SBCL_PWD/output/sbcl.core" \
27   --disable-debugger --no-sysinit --no-userinit \
28   --load ../tools-for-build/rtf.lisp \
29   --load ../tools-for-build/wxs.lisp \
30   --eval '(progn
31             (write-rtf (read-text "../COPYING") "License.rtf")
32             (write-wxs "sbcl.wxs")
33             (with-open-file (f "version.txt"
34                                :direction :output
35                                :if-exists :supersede)
36              (write-line (lisp-implementation-version) f))
37             (exit))'
38
39 "$WIX_PATH/candle" sbcl.wxs
40 "$WIX_PATH/light" sbcl.wixobj \
41    -ext "$WIX_PATH/WixUIExtension.dll" -cultures:en-us \
42    -out sbcl-`cat version.txt`.msi