1.2.2: will be tagged as "sbcl-1.2.2"
[sbcl.git] / make-windows-installer.sh
blob164b5beff6e6b370301e6164d0b49aefa6554a7e
1 #!/bin/sh
3 # This software is part of the SBCL system. See the README file for
4 # more information.
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.
12 if test -n "$WIX_PATH"; then
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"
19 echo "using $WIX_PATH"
21 . ./sbcl-pwd.sh
22 sbcl_pwd
24 cd output
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 (format f "~a-~a-windows-binary"
37 (lisp-implementation-version)
38 #+x86 "x86" #+x86-64 "x86-64"))
39 (exit))'
41 "$WIX_PATH/candle" sbcl.wxs
42 "$WIX_PATH/light" sbcl.wixobj \
43 -ext "$WIX_PATH/WixUIExtension.dll" -cultures:en-us \
44 -out sbcl-`cat version.txt`.msi