Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal J. Bourguignon
asdf
Commits
7f8f741d
Commit
7f8f741d
authored
17 years ago
by
Gary King
Browse files
Options
Downloads
Patches
Plain Diff
Adds documentation to oos and operate. Also fixes the #. evaluation of *package*
(thanks to Peter Van Eynde).
parent
b0071f87
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
asdf.lisp
+29
-6
29 additions, 6 deletions
asdf.lisp
test/run-tests.sh
+5
-5
5 additions, 5 deletions
test/run-tests.sh
with
34 additions
and
11 deletions
asdf.lisp
+
29
−
6
View file @
7f8f741d
;;; This is asdf: Another System Definition Facility. $Revision: 1.10
9
$
;;; This is asdf: Another System Definition Facility. $Revision: 1.1
1
0 $
;;;
;;; 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.10
9
$"
)
(
defvar
*asdf-revision*
(
let*
((
v
"$Revision: 1.1
1
0 $"
)
(
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
)))
...
...
This diff is collapsed.
Click to expand it.
test/run-tests.sh
+
5
−
5
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment