X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fmake-tempfiles.sh;h=dc7a6c70b4ab5d1d69e43222f57a6d19a7d43d5b;hb=7c7e6276719b8d40fddec2070cad81064a25c8ed;hp=c0ce125d61651a367db6d4ce832ee234b9cb467d;hpb=01b53542be411ba6ede003da5e7292e16602ab6e;p=sbcl.git diff --git a/doc/manual/make-tempfiles.sh b/doc/manual/make-tempfiles.sh index c0ce125..dc7a6c7 100644 --- a/doc/manual/make-tempfiles.sh +++ b/doc/manual/make-tempfiles.sh @@ -13,18 +13,31 @@ # 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" +# 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. @@ -39,7 +52,13 @@ 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 +$SBCL <