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 # Until sbcl-0.6.12.8, the shell variable SBCL was bound to a relative
15 # pathname, but now we take care to bind it to an absolute pathname (still
16 # generated relative to `pwd` in the tests/ directory) so that tests
17 # can chdir before invoking SBCL and still work.
19 # We create the documentation from the in-tree sbcl if it is found,
20 # else an installed sbcl is used.
21 sbclsystem=`pwd`/../../src/runtime/sbcl
24 SBCL="${1:-$sbclsystem --core `pwd`/../output/sbcl.core}"
26 SBCL="${1:-`which sbcl`}"
29 # List of package names that documentation will be created for.
32 # Output directory. This has to end with a slash (it's interpreted by
33 # Lisp's `pathname' function) or you lose.
34 DOCSTRINGDIR="${DOCSTRINGDIR:-docstrings/}"
37 echo /creating docstring snippets from SBCL=\'$SBCL\' for packages \'$PACKAGES\'
39 echo "(progn (load \"docstrings.lisp\") (docstrings-to-texinfo \"$DOCSTRINGDIR\" $PACKAGES) (sb-ext:quit))" | $SBCL --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger