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
Hugo Ishimaru
asdf
Commits
1cf58c2f
Commit
1cf58c2f
authored
18 years ago
by
Nikodemus Siivola
Browse files
Options
Downloads
Patches
Plain Diff
OOS :VERSION support. Thanks to Robert P. Goldman.
parent
0c14c8d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
asdf.lisp
+32
-32
32 additions, 32 deletions
asdf.lisp
test/test-version.script
+30
-0
30 additions, 0 deletions
test/test-version.script
test/wild-module.asd
+2
-3
2 additions, 3 deletions
test/wild-module.asd
with
64 additions
and
35 deletions
asdf.lisp
+
32
−
32
View file @
1cf58c2f
;;; This is asdf: Another System Definition Facility. $Revision: 1.9
6
$
;;; This is asdf: Another System Definition Facility. $Revision: 1.9
7
$
;;;
;;; Feedback, bug reports, and patches are all welcome: please mail to
;;; <cclan-list@lists.sf.net>. But note first that the canonical
...
...
@@ -109,7 +109,7 @@
(
in-package
#:asdf
)
(
defvar
*asdf-revision*
(
let*
((
v
"$Revision: 1.9
6
$"
)
(
defvar
*asdf-revision*
(
let*
((
v
"$Revision: 1.9
7
$"
)
(
colon
(
or
(
position
#\:
v
)
-1
))
(
dot
(
position
#\.
v
)))
(
and
v
colon
dot
...
...
@@ -828,37 +828,37 @@ system."))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; invoking operations
(
defun
operate
(
operation-class
system
&rest
args
)
(
defun
operate
(
operation-class
system
&rest
args
&key
(
verbose
t
)
version
)
(
let*
((
op
(
apply
#'
make-instance
operation-class
:original-initargs
args
args
))
(
*verbose-out*
(
if
(
getf
args
:verbose
t
)
*trace-output*
(
make-broadcast-stream
))
)
(
system
(
if
(
typep
system
'component
)
system
(
find-system
system
)
))
(
steps
(
traverse
op
system
)))
(
with-compilation-unit
()
(
loop
for
(
op
.
component
)
in
steps
do
(
loop
(
restart-case
(
progn
(
perform
op
component
)
(
return
))
(
retry
()
:report
(
lambda
(
s
)
(
format
s
"~@<Retry performing ~S on ~S.~@:>"
op
component
)))
(
accept
()
:report
(
lambda
(
s
)
(
format
s
"~@<Continue, treating ~S on ~S as ~
having been successful.~@:>"
op
component
))
(
setf
(
gethash
(
type-of
op
)
(
component-operation-times
component
))
(
get-universal-time
))
(
return
))))))))
:original-initargs
args
args
))
(
*verbose-out*
(
if
verbose
*trace-output*
(
make-broadcast-stream
))
)
(
system
(
if
(
typep
system
'component
)
system
(
find-system
system
))))
(
unless
(
version-satisfies
system
version
)
(
error
'missing-component
:requires
system
:version
version
))
(
let
(
(
steps
(
traverse
op
system
)))
(
with-compilation-unit
()
(
loop
for
(
op
.
component
)
in
steps
do
(
loop
(
restart-case
(
progn
(
perform
op
component
)
(
return
))
(
retry
()
:report
(
lambda
(
s
)
(
format
s
"~@<Retry performing ~S on ~S.~@:>"
op
component
)))
(
accept
()
:report
(
lambda
(
s
)
(
format
s
"~@<Continue, treating ~S on ~S as ~
having been successful.~@:>"
op
component
))
(
setf
(
gethash
(
type-of
op
)
(
component-operation-times
component
))
(
get-universal-time
))
(
return
))))))))
)
(
defun
oos
(
&rest
args
)
"Alias of OPERATE function"
...
...
This diff is collapsed.
Click to expand it.
test/test-version.script
0 → 100644
+
30
−
0
View file @
1cf58c2f
;; -*- lisp -*-
(
load
"../asdf"
)
(
setf
asdf:*central-registry*
'
(
*default-pathname-defaults*
))
(
defpackage
:test-version-system
(
:use
:cl
:asdf
))
(
in-package
:test-version-system
)
(
defsystem
:versioned-system-1
:pathname
#.
*default-pathname-defaults*
:version
"1.0"
)
(
defsystem
:versioned-system-2
:pathname
#.
*default-pathname-defaults*
:version
"1.1"
)
(
defsystem
:versioned-system-3
:pathname
#.
*default-pathname-defaults*
:version
"1.2"
)
(
flet
((
test
(
name
v
&optional
(
true
t
))
(
or
(
eq
true
(
asdf::version-satisfies
(
find-system
name
)
v
))
(
error
"no satisfaction: ~S version ~A not ~A"
name
v
true
))))
(
test
:versioned-system-1
"1.0"
)
(
test
:versioned-system-2
"1.0"
)
(
test
:versioned-system-3
"2.0"
nil
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/wild-module.asd
+
2
−
3
View file @
1cf58c2f
;;; -*- Lisp -*-
(
asdf:defsystem
wild-module
(
asdf:defsystem
:
wild-module
:version
"0.0"
:components
((
:wild-module
"systems"
:pathname
"*.asd"
)))
:components
((
:wild-module
"systems"
:pathname
"*.asd"
)))
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