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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Tarn Burton
asdf
Commits
a61a8608
Commit
a61a8608
authored
9 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Further fix archive building.
parent
e9df2f58
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/asdf-builder
+14
-8
14 additions, 8 deletions
bin/asdf-builder
with
14 additions
and
8 deletions
bin/asdf-builder
+
14
−
8
View file @
a61a8608
...
@@ -122,8 +122,13 @@
...
@@ -122,8 +122,13 @@
destination))
destination))
(ensure-directories-exist destination)
(ensure-directories-exist destination)
(run `(cp "-pHux" --parents ,@files ,destination) :directory base :show t)
(run `(cp "-pHux" --parents ,@files ,destination) :directory base :show t)
(run `(tar "zcfC" ,tarball ,*build-dir* (,name /)) :show t)
(run `(tar "zcfC" ,tarball ,*build-dir*
(delete-directory-tree destination :validate (lambda (x) (equal x destination)))
;; 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.
#+darwin (* :uid 0 :gid 0) ;; assume BSD tar on Darwin.
(,name /)) :show t)
(delete-directory-tree destination :validate #'(lambda (x) (equal x destination)))
(values)))
(values)))
(defun driver-files ()
(defun driver-files ()
...
@@ -144,12 +149,12 @@
...
@@ -144,12 +149,12 @@
(defun asdf-git-name ()
(defun asdf-git-name ()
(strcat "asdf-" *version*))
(strcat "asdf-" *version*))
(defun all-asdf-files ()
(remove-if #'(lambda (x) (string-prefix-p "ext/" x))
(run/lines '(git ls-files))))
(defun make-git-tarball ()
(defun make-git-tarball ()
(build-asdf)
(build-asdf)
(with-current-directory ((pn))
(make-tarball-under-build (asdf-git-name) *asdf-dir* (all-asdf-files)))
(run `(tar zcf ("build/" ,(asdf-git-name) ".tar.gz") "--exclude" ext/ build/asdf.lisp ,@(run/lines '(git ls-files)))
:show t))
(values))
(defun asdf-lisp-name ()
(defun asdf-lisp-name ()
(format nil "asdf-~A.lisp" *version*))
(format nil "asdf-~A.lisp" *version*))
...
@@ -172,8 +177,9 @@
...
@@ -172,8 +177,9 @@
(defun publish-archive ()
(defun publish-archive ()
(let ((tarballs (mapcar 'tarname (list (driver-name) (asdf-defsystem-name) (asdf-git-name)))))
(let ((tarballs (mapcar 'tarname (list (driver-name) (asdf-defsystem-name) (asdf-git-name)))))
(run (format nil "cd ~S && rsync ~{~S ~}~S common-lisp.net:/project/asdf/public_html/archives/"
(run `(rsync "--times" "--chmod=a+rX,ug+w"
/build-dir/ tarballs (asdf-lisp-name)) :show t))
,@tarballs ,(asdf-lisp-name) (,*clnet* ":" ,(public-path "archives/")))
:show t :directory (pn "build/")))
(format t "~&To download the tarballs, point your browser at:~%
(format t "~&To download the tarballs, point your browser at:~%
http://common-lisp.net/project/asdf/archives/
http://common-lisp.net/project/asdf/archives/
~%")
~%")
...
...
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