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
3629f60a
Commit
3629f60a
authored
15 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
1.660: implement compatibility mode with ASDF-Binary-Locations. Untested.
parent
d7734245
No related branches found
Branches containing commit
Tags
1.660
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
asdf.lisp
+51
-3
51 additions, 3 deletions
asdf.lisp
with
51 additions
and
3 deletions
asdf.lisp
+
51
−
3
View file @
3629f60a
...
...
@@ -263,7 +263,7 @@
;; This parameter isn't actually user-visible
;; -- please use the exported function ASDF:ASDF-VERSION below.
;; the 1+ hair is to ensure that we don't do an inadvertent find and replace
(
subseq
"VERSION:1.6
59
"
(
1+
(
length
"VERSION"
))))
(
subseq
"VERSION:1.6
60
"
(
1+
(
length
"VERSION"
))))
(
defun
asdf-version
()
"Exported interface to the version of ASDF currently installed. A string.
...
...
@@ -2317,6 +2317,13 @@ with a different configuration, so the configuration would be re-read then."
(
etypecase
x
(
pathname
x
)
(
string
(
ensure-directory-pathname
x
))
(
cons
(
let
((
car
(
resolve-absolute-location-component
(
car
x
)
nil
)))
(
if
(
null
(
cdr
x
))
car
(
let
((
cdr
(
resolve-relative-location-component
car
(
cdr
x
)
wildenp
)))
(
merge-pathnames*
cdr
car
)))))
((
eql
:home
)
(
user-homedir-pathname
))
((
eql
:user-cache
)
(
resolve-location
*user-cache*
nil
))
((
eql
:system-cache
)
(
resolve-location
*system-cache*
nil
))
...
...
@@ -2333,6 +2340,13 @@ with a different configuration, so the configuration would be re-read then."
(
let*
((
r
(
etypecase
x
(
pathname
x
)
(
string
x
)
(
cons
(
let
((
car
(
resolve-relative-location-component
super
(
car
x
)
nil
)))
(
if
(
null
(
cdr
x
))
car
(
let
((
cdr
(
resolve-relative-location-component
(
merge-pathnames*
car
super
)
(
cdr
x
)
wildenp
)))
(
merge-pathnames*
cdr
car
)))))
((
eql
:current-directory
)
(
relativize-pathname-directory
(
truenamize
*default-pathname-defaults*
)))
...
...
@@ -2509,8 +2523,9 @@ with a different configuration, so the configuration would be re-read then."
(
process-output-translations
(
pathname
dst
)
:inherit
nil
:collect
collect
))
(
when
src
(
let*
((
trusrc
(
truenamize
(
resolve-location
src
t
)))
(
trudst
(
if
dst
(
resolve-location
dst
t
)
trusrc
)))
(
funcall
collect
(
list
trudst
trudst
))
(
trudst
(
if
dst
(
resolve-location
dst
t
)
trusrc
))
(
wilddst
(
make-pathname
:name
:wild
:type
:wild
:defaults
trudst
)))
(
funcall
collect
(
list
wilddst
wilddst
))
(
funcall
collect
(
list
trusrc
trudst
))))))))
(
defun
compute-output-translations
(
&optional
parameter
)
...
...
@@ -2563,6 +2578,39 @@ return the configuration"
(
truenamize
(
lispize-pathname
input-file
))
keys
)))
;;;; -----------------------------------------------------------------
;;;; Compatibility mode for ASDF-Binary-Locations
(
defun
enable-asdf-binary-locations-compatibility
(
&key
(
centralize-lisp-binaries
nil
)
(
default-toplevel-directory
;; Use ".cache/common-lisp" instead ???
(
merge-pathnames*
(
make-pathname
:directory
'
(
:relative
".fasls"
))
(
user-homedir-pathname
)))
(
include-per-user-information
nil
)
(
map-all-source-files
nil
)
(
source-to-target-mappings
nil
))
(
let*
((
fasl-type
(
pathname-type
(
compile-file-pathname
"foo.lisp"
)))
(
wild-inferiors
(
make-pathname
:directory
'
(
:relative
:wild-inferiors
)))
(
mapped-files
(
make-pathname
:name
:wild
:type
(
if
map-all-source-files
:wild
fasl-type
)))
(
destination-directory
(
if
centralize-lisp-binaries
`
(
,
default-toplevel-directory
,@
(
when
include-per-user-information
(
cdr
(
pathname-directory
(
user-homedir-pathname
))))
:implementation
,
wild-inferiors
)
`
(
:root
,
wild-inferiors
:implementation
))))
(
initialize-output-translations
`
(
:output-translations
,@
source-to-target-mappings
((
:root
,
wild-inferiors
,
mapped-files
)
(
,@
destination-directory
,
mapped-files
))
(
:root
:root
)
:ignore-inherited-configuration
))))
;;;; -----------------------------------------------------------------
;;;; Windows shortcut support. Based on:
;;;;
...
...
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