From eae526d265dfaa28f8946098dff142461eee0c17 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Fri, 6 Apr 2012 20:47:01 +0200 Subject: [PATCH] Rewrite buildpkg in Elisp. --- buildpkg | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/buildpkg b/buildpkg index 00416041..5d937e95 100755 --- a/buildpkg +++ b/buildpkg @@ -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)