3 # Create Texinfo snippets from the documentation of exported symbols.
5 # This software is part of the SBCL system. See the README file for
8 # This software is in the public domain and is provided with
9 # absolutely no warranty. See the COPYING and CREDITS files for
14 # We create the documentation from the in-tree sbcl if it is found,
15 # else an installed sbcl is used.
22 sbclsystem=$SBCL_PWD/../../src/runtime/sbcl
23 sbclcore=$SBCL_PWD/../../output/sbcl.core
24 if [ -e $sbclsystem ] && [ -e $sbclcore ]
26 SBCLRUNTIME="$sbclsystem --core $sbclcore"
27 SBCL_HOME=$SBCL_PWD/../../contrib/; export SBCL_HOME
28 SBCL_BUILDING_CONTRIB="please asdf install your hook"; export SBCL_BUILDING_CONTRIB
30 SBCLRUNTIME="`which sbcl`"
36 SBCL="$SBCLRUNTIME --noinform --no-sysinit --no-userinit --noprint --disable-debugger"
38 # extract version and date
39 VERSION=`$SBCL --eval '(write-line (lisp-implementation-version))' --eval '(sb-ext:quit)'`
42 sed -e "s/@VERSION@/$VERSION/" \
43 -e "s/@MONTH@/$MONTH/" < variables.template > variables.texinfo || exit 1
45 # Output directory. This has to end with a slash (it's interpreted by
46 # Lisp's `pathname' function) or you lose. This is normally set from
48 DOCSTRINGDIR="${DOCSTRINGDIR:-docstrings/}"
50 # List of contrib modules that docstring docs will be created for.
51 # This is normally set from Makefile.
52 #MODULES="${MODULES:-sb-md5 :sb-rotate-byte}"
54 # List of package names that documentation will be created for. This
55 # is normally set from Makefile.
56 #PACKAGES="${PACKAGES:-:COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD}"
58 echo /creating docstring snippets from SBCL=\'$SBCLRUNTIME\' for packages \'$PACKAGES\'
60 (load "docstrings.lisp")
62 (dolist (module (quote ($MODULES)))
64 (sb-texinfo:generate-includes "$DOCSTRINGDIR" $PACKAGES)
68 echo /creating package-locks.texi-temp
69 if $SBCL --eval "(let ((plp (find-symbol \"PACKAGE-LOCKED-P\" :sb-ext))) (quit :unix-status (if (and plp (fboundp plp)) 0 1)))";
71 cp package-locks-extended.texinfo package-locks.texi-temp
73 cp package-locks-basic.texinfo package-locks.texi-temp