set -e
# Create a distribution containing the HTML versions of system
-# documentation. (make-doc.sh needs to be run first, in order to
+# documentation. (cd doc/manual && make needs to be run first, in order to
# compile the doc sources into HTML.)
b=${1:?missing base directory name argument}
-tar cf $b-html.tar \
+tar cf $b-documentation-html.tar \
`find $b -name '*.htm*'` \
- $b/COPYING $b/CREDITS $b/README \
+ $b/COPYING $b/CREDITS $b/README $b/SUPPORT \
$b/pubring.pgp
(defvar *indent-level* 0)
+(defvar *sbcl-source-root*
+ (truename
+ (merge-pathnames (make-pathname :directory (list :relative :up))
+ (make-pathname :name nil :type nil :defaults *load-truename*))))
+
(defun print-xml (sexp &optional (stream *standard-output*))
(destructuring-bind (tag &optional attributes &body children) sexp
(when attributes (assert (evenp (length attributes))))
string))
(defun directory-id (name)
- (id (format nil "Directory_~A" (enough-namestring name))))
+ (id (format nil "Directory_~A" (enough-namestring name *sbcl-source-root*))))
(defun directory-names (pathname)
(let ((name (car (last (pathname-directory pathname)))))
(list "Name" name))))
(defun file-id (pathname)
- (id (format nil "File_~A" (enough-namestring pathname))))
+ (id (format nil "File_~A" (enough-namestring pathname *sbcl-source-root*))))
(defparameter *ignored-directories* '("CVS" ".svn"))
(defparameter *components* nil)
(defun component-id (pathname)
- (let ((id (id (format nil "Contrib_~A" (enough-namestring pathname)))))
+ (let ((id (id (format nil "Contrib_~A" (enough-namestring pathname *sbcl-source-root*)))))
(push id *components*)
id))
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.0.3"
+"1.0.0.4"