Add a package-build-all function to build all known packages.

Improves speed and eases addition of more packages.

No need for buildlist anymore.
This commit is contained in:
Donald Ephraim Curtis 2012-01-22 13:05:59 -06:00
parent 514306794b
commit 76fd6c24d6
3 changed files with 11 additions and 48 deletions

View file

@ -1,30 +0,0 @@
browse-kill-ring
clojure-mode
clojure-test-mode
clojurescript-mode
deft
evil
find-file-in-project
full-ack
gist
haskell-mode
hl-sentence
idle-highlight-mode
ido-ubiquitous
magit
magithub
markdown-mode
markdown-mode+
paredit
rinari
ruby-mode
smex
starter-kit
starter-kit-bindings
starter-kit-eshell
starter-kit-js
starter-kit-lisp
starter-kit-perl
starter-kit-ruby
undo-tree
yasnippet

12
melpa
View file

@ -13,17 +13,7 @@ function melpa_clear_packages {
function melpa_build_pkglist { function melpa_build_pkglist {
echo "*** Building all packages..." echo "*** Building all packages..."
for pkg in `cat buildlist`; do emacs --batch -l package-build.el -u dcurtis --eval "(package-build-all)"
./buildpkg $pkg
echo
echo
done
echo
}
function melpa_build_archive {
echo "Building package: $pkg"
emacs --batch -l package-build.el -u dcurtis --eval "(package-build-archive \"$1\")"
echo echo
} }

View file

@ -212,12 +212,6 @@
"--exclude=_darcs" "--exclude=_darcs"
files))) files)))
(defun package-build-archives (&rest pkgs)
"build archives"
(interactive)
(mapc 'package-build-archive pkgs)
(package-build-dump-archive-contents))
(defun package-build-get-package-info (file-path) (defun package-build-get-package-info (file-path)
(when (file-exists-p file-path) (when (file-exists-p file-path)
(ignore-errors (ignore-errors
@ -227,7 +221,6 @@
;; commented properly. ;; commented properly.
(goto-char (point-max)) (goto-char (point-max))
(insert (concat "\n;;; " (file-name-nondirectory file-path) " ends here")) (insert (concat "\n;;; " (file-name-nondirectory file-path) " ends here"))
(print (buffer-substring-no-properties (point-min) (point-max)))
(flet ((package-strip-rcs-id (str) "0")) (flet ((package-strip-rcs-id (str) "0"))
(package-buffer-info)))))) (package-buffer-info))))))
@ -244,6 +237,16 @@
(nth 1 pkgfile-info))))) (nth 1 pkgfile-info)))))
(defun package-build-all ()
"build all packages in the `package-build-alist'"
(interactive)
(apply 'package-build-archives (mapcar 'symbol-name (mapcar 'car package-build-alist))))
(defun package-build-archives (&rest pkgs)
"build archives"
(interactive)
(mapc 'package-build-archive pkgs))
(defun package-build-archive (file-name) (defun package-build-archive (file-name)
"build a package archive" "build a package archive"
(interactive) (interactive)