Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asdf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pascal J. Bourguignon
asdf
Commits
7f8f741d
Commit
7f8f741d
authored
Sep 27, 2007
by
Gary King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds documentation to oos and operate. Also fixes the #. evaluation of *package*
(thanks to Peter Van Eynde).
parent
b0071f87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
11 deletions
+34
-11
asdf.lisp
asdf.lisp
+29
-6
test/run-tests.sh
test/run-tests.sh
+5
-5
No files found.
asdf.lisp
View file @
7f8f741d
;;; This is asdf: Another System Definition Facility. $Revision: 1.1
09
$
;;; This is asdf: Another System Definition Facility. $Revision: 1.1
10
$
;;;
;;; Feedback, bug reports, and patches are all welcome: please mail to
;;; <cclan-list@lists.sf.net>. But note first that the canonical
...
...
@@ -115,7 +115,7 @@
(
in-package
#:asdf
)
(
defvar
*asdf-revision*
(
let*
((
v
"$Revision: 1.1
09
$"
)
(
defvar
*asdf-revision*
(
let*
((
v
"$Revision: 1.1
10
$"
)
(
colon
(
or
(
position
#\:
v
)
-1
))
(
dot
(
position
#\.
v
)))
(
and
v
colon
dot
...
...
@@ -899,6 +899,20 @@ system."))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; invoking operations
(
defvar
*operate-docstring*
"Operate does three things:
1. It creates an instance of `operation-class` using any keyword parameters
as initargs.
2. It finds the asdf-system specified by `system` (possibly loading
it from disk).
3. It then calls `traverse` with the operation and system as arguments
The traverse operation is wrapped in `with-compilation-unit` and error
handling code. If a `version` argument is supplied, then operate also
ensures that the system found satisfies it using the `version-satisfies`
method."
)
(
defun
operate
(
operation-class
system
&rest
args
&key
(
verbose
t
)
version
&allow-other-keys
)
(
let*
((
op
(
apply
#'
make-instance
operation-class
...
...
@@ -932,9 +946,17 @@ system."))
(
get-universal-time
))
(
return
)))))))))
(
defun
oos
(
&rest
args
)
"Alias of OPERATE function"
(
apply
#'
operate
args
))
(
setf
(
documentation
'operate
'function
)
*operate-docstring*
)
(
defun
oos
(
operation-class
system
&rest
args
&key
force
(
verbose
t
)
version
)
(
declare
(
ignore
force
verbose
version
))
(
apply
#'
operate
operation-class
system
args
))
(
setf
(
documentation
'oos
'function
)
(
format
nil
"Short for _operate on system_ and an alias for the `operate` function. ~&~&~a"
*operate-docstring*
))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; syntax
...
...
@@ -981,7 +1003,8 @@ system."))
(
defun
class-for-type
(
parent
type
)
(
let*
((
extra-symbols
(
list
(
find-symbol
(
symbol-name
type
)
*package*
)
(
find-symbol
(
symbol-name
type
)
(
package-name
#.
*package*
))))
(
load-time-value
(
package-name
:asdf
)))))
(
class
(
dolist
(
symbol
(
if
(
keywordp
type
)
extra-symbols
(
cons
type
extra-symbols
)))
...
...
test/run-tests.sh
View file @
7f8f741d
#!/bin/sh
# do_tests {lisp invocation} {fasl extension}
# - read lisp forms one at a time from standard input
# - quit with exit status 0 on getting eof
# - quit with exit status >0 if an unhandled error occurs
if
[
-z
"
$2
"
]
;
then
scripts
=
"*.script"
...
...
@@ -45,11 +50,6 @@ if [ $? -eq 0 ] ; then
fi
}
# do_tests {lisp invocation} {fasl extension}
# - read lisp forms one at a time from standard input
# - quit with exit status 0 on getting eof
# - quit with exit status >0 if an unhandled error occurs
# terminate on error
set
-e
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment