if [ "$OSTYPE" = "cygwin" -o "$OSTYPE" = "msys" ] ; then
DEFAULT_INSTALL_ROOT="$PROGRAMFILES/sbcl"
RUNTIME=sbcl.exe
- OLD_RUNTIME=sbcl_old.exe
+ OLD_RUNTIME=sbcl.exe.old
else
DEFAULT_INSTALL_ROOT=/usr/local
RUNTIME=sbcl
DOC_DIR=${DOC_DIR-$INSTALL_ROOT/share/doc/sbcl}
# Does the environment look sane?
-SBCL_SOURCE=`pwd`
if [ -n "$SBCL_HOME" -a "$INSTALL_ROOT/lib/sbcl" != "$SBCL_HOME" ];then
echo SBCL_HOME environment variable is set, and conflicts with INSTALL_ROOT.
echo Aborting installation. Unset one or reset the other, then try again
test -f $BUILD_ROOT$SBCL_HOME/sbcl.core && \
mv $BUILD_ROOT$SBCL_HOME/sbcl.core $BUILD_ROOT$SBCL_HOME/sbcl.core.old
-cp src/runtime/sbcl $BUILD_ROOT$INSTALL_ROOT/bin/
+cp src/runtime/$RUNTIME $BUILD_ROOT$INSTALL_ROOT/bin/
cp output/sbcl.core $BUILD_ROOT$SBCL_HOME/sbcl.core
# installing contrib
-SBCL="`pwd`/src/runtime/sbcl --noinform --core `pwd`/output/sbcl.core --no-userinit --no-sysinit --disable-debugger"
+. ./sbcl-pwd.sh
+sbcl_pwd
+
+SBCL="$SBCL_PWD/src/runtime/sbcl --noinform --core $SBCL_PWD/output/sbcl.core --no-userinit --no-sysinit --disable-debugger"
SBCL_BUILDING_CONTRIB=1
export SBCL SBCL_BUILDING_CONTRIB
cp doc/sbcl.1 $BUILD_ROOT$MAN_DIR/man1/ && echo " man $BUILD_ROOT$MAN_DIR/man1/sbcl.1"
# info
-for info in doc/manual/*.info
+for info in doc/manual/*.info doc/manual/*.info-*
do
cp $info $BUILD_ROOT$INFO_DIR/ \
&& echo -n " info $BUILD_ROOT$INFO_DIR/`basename $info` $BUILD_ROOT$INFO_DIR/dir" \