X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fmake-tempfiles.sh;h=ec07a3f35e5015fc2d7b16c29582739b4e3d0398;hb=b1b43e74be3d133bd1edf7d17adb607f8290331f;hp=9b87b90fa29efdcc1453d94b136ecc3a1f313850;hpb=29f6444d6fed787a87b828d600c4ae429b970096;p=sbcl.git diff --git a/doc/manual/make-tempfiles.sh b/doc/manual/make-tempfiles.sh index 9b87b90..ec07a3f 100644 --- a/doc/manual/make-tempfiles.sh +++ b/doc/manual/make-tempfiles.sh @@ -1,7 +1,6 @@ #!/bin/sh # Create Texinfo snippets from the documentation of exported symbols. -# Also create contrib-docs.texi-temp to include documentation in contrib/. # This software is part of the SBCL system. See the README file for # more information. @@ -14,17 +13,34 @@ # 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 + . ../../sbcl-pwd.sh + sbcl_pwd + + sbclsystem=$SBCL_PWD/../../src/runtime/sbcl + sbclcore=$SBCL_PWD/../../output/sbcl.core + if [ -f $sbclsystem ] && [ -f $sbclcore ] + then + SBCLRUNTIME="$sbclsystem --core $sbclcore" + SBCL_HOME=$SBCL_PWD/../../obj/sbcl-home/; export SBCL_HOME + SBCL_BUILDING_CONTRIB="please asdf install your hook"; export SBCL_BUILDING_CONTRIB + 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 +SBCL="$SBCLRUNTIME --noinform --no-sysinit --no-userinit --noprint --disable-debugger" + +# extract version and date +VERSION=`$SBCL --eval '(write-line (lisp-implementation-version))' --eval '(sb-ext:exit)'` +MONTH=`date "+%Y-%m"` + +sed -e "s/@VERSION@/$VERSION/" \ + -e "s/@MONTH@/$MONTH/" < variables.template > variables.texinfo || exit 1 # Output directory. This has to end with a slash (it's interpreted by # Lisp's `pathname' function) or you lose. This is normally set from @@ -40,15 +56,32 @@ DOCSTRINGDIR="${DOCSTRINGDIR:-docstrings/}" #PACKAGES="${PACKAGES:-:COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD}" echo /creating docstring snippets from SBCL=\'$SBCLRUNTIME\' for packages \'$PACKAGES\' -echo "(progn (load \"docstrings.lisp\") (dolist (module (quote ($MODULES))) (require module)) (docstrings-to-texinfo \"$DOCSTRINGDIR\" $PACKAGES) (sb-ext:quit))" | $SBCL - -echo /creating contrib-docs.texi-temp -echo "(load \"create-contrib-doc-list.lisp\")" | $SBCL +$SBCL <