X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fmake-tempfiles.sh;h=f520b227f244d10edb4aacd9edaa9a316fbe02a9;hb=04d819bb1a2e64de4e997203b9516229bb73c686;hp=d0ce05c47afd9e2b1bd43a644226c31804c5719d;hpb=f5a3b5bfc0dadc42b92a73e16891f5093836d424;p=sbcl.git diff --git a/doc/manual/make-tempfiles.sh b/doc/manual/make-tempfiles.sh index d0ce05c..f520b22 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,26 +13,59 @@ # We create the documentation from the in-tree sbcl if it is found, # else an installed sbcl is used. -sbclsystem=`pwd`/../../src/runtime/sbcl -if [ -e $sbclsystem ] + +if [ -z "$1" ] then -SBCL="${1:-$sbclsystem --core `pwd`/../../output/sbcl.core}" -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 + SBCL_BUILDING_CONTRIB="please asdf install your hook"; export SBCL_BUILDING_CONTRIB + else + SBCLRUNTIME="`which sbcl`" + fi else -SBCL="${1:-`which sbcl`}" + SBCLRUNTIME="$1" fi +SBCL="$SBCLRUNTIME --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger" + +# extract version and date +VERSION=`$SBCL --eval '(write-line (lisp-implementation-version))' --eval '(sb-ext:quit)'` +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 # Makefile. DOCSTRINGDIR="${DOCSTRINGDIR:-docstrings/}" +# List of contrib modules that docstring docs will be created for. +# This is normally set from Makefile. +#MODULES="${MODULES:-sb-md5 :sb-rotate-byte}" + # List of package names that documentation will be created for. This # is normally set from Makefile. -PACKAGES="${PACKAGES:-:COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD}" +#PACKAGES="${PACKAGES:-:COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD}" -echo /creating docstring snippets from SBCL=\'$SBCL\' for packages \'$PACKAGES\' -echo "(progn (load \"docstrings.lisp\") (docstrings-to-texinfo \"$DOCSTRINGDIR\" $PACKAGES) (sb-ext:quit))" | $SBCL --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger +echo /creating docstring snippets from SBCL=\'$SBCLRUNTIME\' for packages \'$PACKAGES\' +$SBCL <