Rewrite buildpkg in Elisp.

This commit is contained in:
Johan Andersson 2012-04-06 20:47:01 +02:00
parent 39c1577eb1
commit eae526d265

View file

@ -1,13 +1,10 @@
#!/bin/bash
#!/usr/bin/env emacs --script
# (load-file "~/.emacs.d/elisp/package-build.el")
# (package-build-archive
for pkg in $@; do
echo "Building package: $pkg"
emacs --batch -l package-build.el --eval "(package-build-archive \"$pkg\")"
echo
echo
done
(add-to-list 'load-path (file-name-directory load-file-name))
(require 'package-build)
(mapc
(lambda (package)
(package-build-archive package))
argv)