X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fmake-tempfiles.sh;h=dc7a6c70b4ab5d1d69e43222f57a6d19a7d43d5b;hb=a02f0965d8da367bbf739dc8a7cb8628210d3cf1;hp=d2dc7cd73a75ea4539b6177db107560a681f7c92;hpb=71624c1b71e429e04dcabe54a5d48992ee95e388;p=sbcl.git diff --git a/doc/manual/make-tempfiles.sh b/doc/manual/make-tempfiles.sh index d2dc7cd..dc7a6c7 100644 --- a/doc/manual/make-tempfiles.sh +++ b/doc/manual/make-tempfiles.sh @@ -13,15 +13,20 @@ # We create the documentation from the in-tree sbcl if it is found, # else an installed sbcl is used. -sbclsystem=`pwd`/../../src/runtime/sbcl -sbclcore=`pwd`/../../output/sbcl.core -if [ -e $sbclsystem ] && [ -e $sbclcore ] +if [ -z "$1" ] then - SBCLRUNTIME="${1:-$sbclsystem --core $sbclcore}" - export SBCL_HOME=`pwd`/../../contrib + sbclsystem=`pwd`/../../src/runtime/sbcl + sbclcore=`pwd`/../../output/sbcl.core + if [ -e $sbclsystem ] && [ -e $sbclcore ] + then + SBCLRUNTIME="$sbclsystem --core $sbclcore" + SBCL_HOME=`pwd`/../../contrib; export SBCL_HOME + else + SBCLRUNTIME="`which sbcl`" + fi else - SBCLRUNTIME="${1:-`which sbcl`}" + SBCLRUNTIME="$1" fi SBCL="$SBCLRUNTIME --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger"