1.0.20.20: fix gencgc on 32 bit platforms with 2gb< heap
[sbcl/pkhuong.git] / doc / manual / make-tempfiles.sh
blob2f7fc3834e3f6548e60a32cfb3d09f186cc17eac
1 #!/bin/sh
3 # Create Texinfo snippets from the documentation of exported symbols.
5 # This software is part of the SBCL system. See the README file for
6 # more information.
8 # This software is in the public domain and is provided with
9 # absolutely no warranty. See the COPYING and CREDITS files for
10 # more information.
12 # how we invoke SBCL
14 # We create the documentation from the in-tree sbcl if it is found,
15 # else an installed sbcl is used.
17 if [ -z "$1" ]
18 then
19 . ../../sbcl-pwd.sh
20 sbcl_pwd
22 sbclsystem=$SBCL_PWD/../../src/runtime/sbcl
23 sbclcore=$SBCL_PWD/../../output/sbcl.core
24 if [ -e $sbclsystem ] && [ -e $sbclcore ]
25 then
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
29 else
30 SBCLRUNTIME="`which sbcl`"
32 else
33 SBCLRUNTIME="$1"
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)'`
40 MONTH=`date "+%Y-%m"`
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
47 # Makefile.
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\'
59 $SBCL <<EOF
60 (load "docstrings.lisp")
61 (require :asdf)
62 (dolist (module (quote ($MODULES)))
63 (require module))
64 (sb-texinfo:generate-includes "$DOCSTRINGDIR" $PACKAGES)
65 (sb-ext:quit))
66 EOF
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)))";
70 then
71 cp package-locks-extended.texinfo package-locks.texi-temp
72 else
73 cp package-locks-basic.texinfo package-locks.texi-temp