# script to build and install SBCL for win32 and roll an .msi installer # run in the SBCL source tree export VERSION=$(eval echo -n $(grep -v ';' version.lisp-expr)) if [ -z "$SBCL_HOME" ]; then # You might want to edit this if you didn't use an installer to get SBCL export SBCL_HOME=/c/sbcl/1.0.13.53 if [ -z "$(which sbcl)" ]; then export PATH="$PATH:$SBCL_HOME" fi fi echo "Starting installer build process for SBCL $VERSION" echo echo "Running make.sh" echo # some cleaning to do first maybe [ -d src/compiler/target ] && { rm -rf src/compiler/target rmdir src/compiler/target } [ -d src/assembly/target ] && { rm -rf src/assembly/target rmdir src/assembly/target } [ -d src/compiler/assembly ] && { rm -rf src/compiler/assembly rmdir src/compiler/assembly } sh make.sh if [ -z "not installing" ]; then echo "Running install.sh" && \ echo "" && \ { unset SBCL_HOME export INSTALL_ROOT=/c/sbcl/$VERSION sh install.sh } fi echo "Running make-windows-installer.sh" && echo "" && \ sh make-windows-installer.sh && \ if [ -f output/sbcl-$VERSION.msi ]; then mv output/sbcl-$VERSION.msi output/sbcl-$VERSION-x86-windows-binary.msi echo "" echo "All done, your .msi file is" echo " output/sbcl-$VERSION-x86-windows-binary.msi" fi