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
03df017f
Commit
03df017f
authored
8 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Tweak asdf-tools so it can be built by bazel
parent
36e63221
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tools/pathnames.lisp
+4
-4
4 additions, 4 deletions
tools/pathnames.lisp
tools/release.lisp
+10
-10
10 additions, 10 deletions
tools/release.lisp
tools/test-upgrade.lisp
+1
-1
1 addition, 1 deletion
tools/test-upgrade.lisp
tools/version.lisp
+0
-2
0 additions, 2 deletions
tools/version.lisp
with
15 additions
and
17 deletions
tools/pathnames.lisp
+
4
−
4
View file @
03df017f
(
in-package
:asdf-tools
)
;;; ASDF directory
(
def
var
*
asdf-dir
*
(
def
un
asdf-dir
()
(
ensure-pathname
(
system-relative-pathname
:asdf/defsystem
())
:want-physical
t
:want-absolute
t
:want-existing
t
:truename
t
))
(
defun
pn
(
&rest
x
)
(
subpathname
*
asdf-dir
*
(
and
x
(
uiop:resolve-relative-location
x
))))
(
subpathname
(
asdf-dir
)
(
and
x
(
uiop:resolve-relative-location
x
))))
(
defun
nn
(
&rest
x
)
(
native-namestring
(
apply
'pn
x
)))
(
def
var
*
uiop-dir
*
(
pn
"uiop/"
))
(
def
var
*
build-dir
*
(
pn
"build/"
))
(
def
un
uiop-dir
()
(
pn
"uiop/"
))
(
def
un
build-dir
()
(
pn
"build/"
))
(
defun
call-with-asdf-dir
(
thunk
&rest
subs
)
(
with-current-directory
((
apply
'pn
subs
))
...
...
This diff is collapsed.
Click to expand it.
tools/release.lisp
+
10
−
10
View file @
03df017f
...
...
@@ -44,13 +44,13 @@
(
destination
(
ensure-pathname
name
:defaults
*
build-dir
*
:defaults
(
build-dir
)
:want-relative
t
:ensure-absolute
t
:ensure-subpath
t
:ensure-directory
t
))
(
tarball
(
ensure-pathname
(
tarname
name
)
:defaults
*
build-dir
*
:defaults
(
build-dir
)
:want-relative
t
:ensure-absolute
t
:ensure-subpath
t
:want-file
t
:ensure-directories-exist
t
)))
...
...
@@ -60,7 +60,7 @@
destination
))
(
ensure-directories-exist
destination
)
(
run*
`
(
cp
"-pHux"
--parents
,@
files
,
destination
)
:directory
base
:show
t
)
(
run*
`
(
tar
"zcf"
,
tarball
"-C"
,
*
build-dir
*
(
run*
`
(
tar
"zcf"
,
tarball
"-C"
,
(
build-dir
)
;; TODO: Have better autodetection for which tar is being used,
;; and fall back to no option if not recognized.
;; #+linux (* :owner root :group root) ;; assume GNU tar on Linux.
...
...
@@ -73,9 +73,9 @@
"list files in uiop"
(
list*
"README.md"
"uiop.asd"
"asdf-driver.asd"
(
system-source-files
"uiop"
)))
(
defun
uiop-name
()
(
format
nil
"uiop-~A"
*
version
*
))
(
format
nil
"uiop-~A"
(
version
-from-file
)
))
(
deftestcmd
make-uiop-tarball
()
(
make-tarball-under-build
(
uiop-name
)
*
uiop-dir
*
(
uiop-files
)))
(
make-tarball-under-build
(
uiop-name
)
(
uiop-dir
)
(
uiop-files
)))
(
defun
asdf-defsystem-files
()
"list files in asdf/defsystem"
...
...
@@ -83,22 +83,22 @@
"asdf.asd"
"version.lisp-expr"
"header.lisp"
(
system-source-files
"asdf/defsystem"
)))
(
defun
asdf-defsystem-name
()
(
format
nil
"asdf-defsystem-~A"
*
version
*
))
(
format
nil
"asdf-defsystem-~A"
(
version
-from-file
)
))
(
deftestcmd
make-asdf-defsystem-tarball
()
(
build-asdf
)
(
make-tarball-under-build
(
asdf-defsystem-name
)
*
asdf-dir
*
(
asdf-defsystem-files
)))
(
make-tarball-under-build
(
asdf-defsystem-name
)
(
asdf-dir
)
(
asdf-defsystem-files
)))
(
defun
asdf-all-name
()
(
strcat
"asdf-"
*
version
*
))
(
strcat
"asdf-"
(
version
-from-file
)
))
(
defun
asdf-all-files
()
(
remove-if
#'
(
lambda
(
x
)
(
string-prefix-p
"ext/"
x
))
(
with-asdf-dir
()
(
run/lines
'
(
git
ls-files
)))))
(
deftestcmd
make-asdf-all-tarball
()
(
build-asdf
)
(
make-tarball-under-build
(
asdf-all-name
)
*
asdf-dir
*
(
asdf-all-files
)))
(
make-tarball-under-build
(
asdf-all-name
)
(
asdf-dir
)
(
asdf-all-files
)))
(
defun
asdf-lisp-name
()
(
format
nil
"asdf-~A.lisp"
*
version
*
))
(
format
nil
"asdf-~A.lisp"
(
version
-from-file
)
))
(
deftestcmd
make-asdf-lisp
()
(
build-asdf
)
(
concatenate-files
(
list
(
pn
"build/asdf.lisp"
))
...
...
This diff is collapsed.
Click to expand it.
tools/test-upgrade.lisp
+
1
−
1
View file @
03df017f
...
...
@@ -159,7 +159,7 @@ Use the preferred lisp implementation"
(
loop
:for
method
:in
upgrade-methods
:for
description
=
(
format
nil
"Testing ASDF upgrade on ~(~A~) from ~A to ~A using method ~(~{~A~^:~}~)"
lisp
tag
*
version
*
method
)
lisp
tag
(
version
-from-file
)
method
)
:when
(
valid-upgrade-test-p
lisp
tag
method
)
:do
(
success-if
(
and
(
extract-tagged-asdf
tag
)
...
...
This diff is collapsed.
Click to expand it.
tools/version.lisp
+
0
−
2
View file @
03df017f
...
...
@@ -37,8 +37,6 @@
(
declare
(
ignore
epoch
))
(
debian-version-string
ver
nil
rel
)))
(
defparameter
*version*
(
version-from-file
))
;;; Bumping the version of ASDF
(
defparameter
*versioned-files*
...
...
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