Permalink
Browse files

Merge pull request #38 from rejeep/buildpkg-in-elisp

Rewrite buildpkg in Elisp
  • Loading branch information...
2 parents 4327b4d + 212e617 commit 1ea577ee4e69b3b06ce664ed8e90fa3034f076f2 @milkypostman milkypostman committed Apr 7, 2012
Showing with 4 additions and 10 deletions.
  1. +4 −10 buildpkg
View
14 buildpkg
@@ -1,13 +1,7 @@
-#!/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 'package-build-archive argv)

0 comments on commit 1ea577e

Please sign in to comment.