From 733ea685ca7cdeeefbd5494954b308b9dbe51846 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sat, 29 Jan 2005 02:09:33 +0000 Subject: [PATCH] r10296: Automated commit for Debian build of lml2 upstream-version-1.5.2 --- debian/changelog | 6 ++++++ files.lisp | 35 +++++++++++++++++------------------ stdsite.lisp | 2 +- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/debian/changelog b/debian/changelog index 61a3487..74f806e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cl-lml2 (1.5.2-1) unstable; urgency=low + + * New upstream + + -- Kevin M. Rosenberg Fri, 28 Jan 2005 19:09:07 -0700 + cl-lml2 (1.5.1-1) unstable; urgency=low * New upstream diff --git a/files.lisp b/files.lisp index 445e548..a3dbf6e 100644 --- a/files.lisp +++ b/files.lisp @@ -19,26 +19,25 @@ (defvar *sources-dir* nil) ) -(defmacro lml-file-name (file &optional (type :source)) - (let ((f file)) - (when (and (consp f) (eql (car f) 'cl:quote)) - (setq f (cadr f))) - (when (symbolp f) - (setq f (string-downcase (symbol-name f)))) - (when (stringp f) - (unless (position #\. f) - (setq f (concatenate 'string f ".html")))) - (if *sources-dir* - (merge-pathnames - (make-pathname :name `,(pathname-name f) - :type `,(pathname-type f) - :directory `,(pathname-directory f)) - (ecase type - (:source *sources-dir*) - (:output *output-dir*))) +(defun lml-file-name (f &optional (type :source)) + (when (and (consp f) (eql (car f) 'cl:quote)) + (setq f (cadr f))) + (when (symbolp f) + (setq f (string-downcase (symbol-name f)))) + (when (stringp f) + (unless (position #\. f) + (setq f (concatenate 'string f ".html")))) + (if *sources-dir* + (merge-pathnames + (make-pathname :name (pathname-name f) + :type (pathname-type f) + :directory (pathname-directory f)) + (ecase type + (:source *sources-dir*) + (:output *output-dir*))) (if (stringp f) (parse-namestring f) - f)))) + f))) (defmacro with-dir ((output &key sources) &body body) (let ((output-dir (gensym)) diff --git a/stdsite.lisp b/stdsite.lisp index aef383b..d15ea00 100644 --- a/stdsite.lisp +++ b/stdsite.lisp @@ -72,7 +72,7 @@ (defmacro std-page ((out-file title &key (format :xhtml11)) &body body) `(let ((*indent* 0)) - (with-open-file (*html-stream* (lml-file-name ,out-file :output) + (with-open-file (*html-stream* (lml-file-name ',out-file :output) :direction :output :if-exists :supersede) (print-std-page (lml-file-name ,out-file :source) ,title ,format ,@body)))) -- 2.34.1