From: Kevin M. Rosenberg Date: Mon, 16 Sep 2002 03:22:16 +0000 (+0000) Subject: r2677: Auto commit for Debian build X-Git-Tag: v2.5.5~188 X-Git-Url: http://git.kpe.io/?a=commitdiff_plain;h=d6ef9baead148ade698d9fcb41c5cd78287c9d9d;p=lml.git r2677: Auto commit for Debian build --- diff --git a/downloads.cl b/downloads.cl index 917c87f..6538845 100644 --- a/downloads.cl +++ b/downloads.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: downloads.cl,v 1.3 2002/09/16 03:16:09 kevin Exp $ +;;;; $Id: downloads.cl,v 1.4 2002/09/16 03:22:16 kevin Exp $ ;;;; ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -78,19 +78,22 @@ (defun print-sect-title (title) (lml-print "~A" *section-indent* title *section-indent*)) - + +(defun match-base-name? (name) + (let ((len-base-name (length *base-name*))) + (when (>= (length name) len-base-name) + (dotimes (i len-base-name) + (declare (fixnum i)) + (unless (char= (char *base-name* i) + (char name i)) + (return-from match-base-name? nil))))) + t) + (defun filter-against-base (files) (let ((filtered '())) (dolist (f files) (let ((name (pathname-name f))) - (when - (block search - (dotimes (i (length *base-name*)) - (declare (fixnum i)) - (unless (char= (char *base-name* i) - (char name i)) - (return-from search nil))) - t) + (when (match-base-name? name) (push f filtered)))) (when filtered (sort filtered #'(lambda (a b) (when (and a b)