[armedbear-cvs] r13351 - trunk/abcl/contrib/asdf-jar
mevenson at common-lisp.net
mevenson at common-lisp.net
Tue Jun 21 08:23:11 UTC 2011
Author: mevenson
Date: Tue Jun 21 01:23:10 2011
New Revision: 13351
Log:
asdf-jar-0.2.1 corrects load-time errors.
Deleted:
trunk/abcl/contrib/asdf-jar/test.lisp
Modified:
trunk/abcl/contrib/asdf-jar/asdf-jar.asd
trunk/abcl/contrib/asdf-jar/asdf-jar.lisp
Modified: trunk/abcl/contrib/asdf-jar/asdf-jar.asd
==============================================================================
--- trunk/abcl/contrib/asdf-jar/asdf-jar.asd Mon Jun 20 07:37:10 2011 (r13350)
+++ trunk/abcl/contrib/asdf-jar/asdf-jar.asd Tue Jun 21 01:23:10 2011 (r13351)
@@ -3,8 +3,8 @@
(defsystem :asdf-jar
:author "Mark Evenson"
- :version "0.2.0"
+ :version "0.2.1"
:components
((:module base :pathname "" :components
((:file "asdf-jar")
- (:static-file "README.markdown))))
\ No newline at end of file
+ (:static-file "README.markdown")))))
Modified: trunk/abcl/contrib/asdf-jar/asdf-jar.lisp
==============================================================================
--- trunk/abcl/contrib/asdf-jar/asdf-jar.lisp Mon Jun 20 07:37:10 2011 (r13350)
+++ trunk/abcl/contrib/asdf-jar/asdf-jar.lisp Tue Jun 21 01:23:10 2011 (r13351)
@@ -11,12 +11,12 @@
(defvar *debug* nil)
-(defun package (system-name
- &key (out #p"/var/tmp/")
- (recursive t) ; whether to package dependencies
- (force nil) ; whether to force ASDF compilation
- (verbose t))
-"Compile and package the asdf SYSTEM-NAME in a jar.
+(defun package (system
+ &key (out #p"/var/tmp/")
+ (recursive t) ; whether to package dependencies
+ (force nil) ; whether to force ASDF compilation
+ (verbose t))
+"Compile and package the asdf SYSTEM in a jar.
When RECURSIVE is true (the default), recursively add all asdf
dependencies into the same jar.
@@ -27,14 +27,13 @@
Returns the pathname of the packaged jar archive.
"
- (let* ((system
- (asdf:find-system system-name))
- (name
+ (when (not (typep system 'asdf:system))
+ (setf system (asdf:find-system system)))
+ (let* ((name
(slot-value system 'asdf::name))
(version
(handler-case (slot-value system 'asdf:version)
(unbound-slot () "unknown")))
-
(package-jar-name
(format nil "~A~A-~A.jar" name (if recursive "-all" "") version))
(package-jar
@@ -42,13 +41,13 @@
(mapping (make-hash-table :test 'equal))
(dependencies (dependent-systems system)))
(when verbose
- (format verbose "~&Packaging ASDF definition of ~A~& as ~A." system package-jar))
+ (format verbose "~&Packaging ASDF definition of ~A" system))
(when (and verbose force)
(format verbose "~&Forcing recursive compilation of ~A." package-jar))
(asdf:compile-system system :force force)
(when verbose
(format verbose "~&Packaging contents in ~A" package-jar))
- (when (and verbose recursive)
+ (when (and verbose recursive dependencies)
(format verbose "~& with recursive dependencies~{ ~A~^, ~}." dependencies))
(dolist (system (append (list system)
(when recursive
More information about the armedbear-cvs
mailing list