(make flag file1 file2...)
loads a set of files
and caches the names of those files. If flag
is nil then
certain tedious SBCL errors are suppressed.
When called with no arguments, e.g. (make)
, the function
reloads the cached file names (which is handy for quickly rebuilding
the sytem.
(let (files) (defun make (&optional verbosep &rest new ) (labels ((make0 (x) (format t ";~a~%" x) (load x))) (if new (setf files new)) (if verbosep (mapcar #'make0 files) (handler-bind ; SBCL-specific ((style-warning #'muffle-warning)) (mapcar #'make0 files))) (terpri) t)) )
Tim Menzies (tim@menzies.us)
Share and enjoy.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.