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.
16 sbclsystem=`pwd`/../../src/runtime/sbcl
19 SBCL="${1:-$sbclsystem --core `pwd`/../../output/sbcl.core}"
20 export SBCL_HOME=`pwd`/../../contrib
22 SBCL="${1:-`which sbcl`}"
25 # List of package names that documentation will be created for.
26 PACKAGES=":SB-ALIEN :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD"
28 # Output directory. This has to end with a slash (it's interpreted by
29 # Lisp's `pathname' function) or you lose.
30 DOCSTRINGDIR="${DOCSTRINGDIR:-docstrings/}"
33 echo /creating docstring snippets from SBCL=\'$SBCL\' for packages \'$PACKAGES\'
34 echo "(progn (load \"docstrings.lisp\") (docstrings-to-texinfo \"$DOCSTRINGDIR\" $PACKAGES) (sb-ext:quit))" | $SBCL --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger