From: Mark Wooding Date: Thu, 23 Mar 2006 14:09:48 +0000 (+0000) Subject: setup: Fix Emacs package installation. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/20eb0692e4ad9017b2f1e73e5e726d9cd7f65b70?ds=inline setup: Fix Emacs package installation. --- diff --git a/setup b/setup index b9adf91..a57edc8 100755 --- a/setup +++ b/setup @@ -194,18 +194,19 @@ emacspkg=" for elib in $emacspkg; do $echon " $elib:$echoc" if $false $emacs >/dev/null 2>&1 --no-site-file --batch --eval ' - (setq load-path (nconc load-path (list "~/lib/emacs"))) - (kill-emacs (condition-case nil - (progn (load-library "make-regexp") 0) - (error 1)))'; then + (progn + (setq load-path (nconc load-path (list "~/lib/emacs"))) + (kill-emacs (condition-case nil + (progn (load-library "'"$elib"'") 0) + (error 1))))'; then echo " already installed." else $echon " downloading$echoc" - $GETURL $HOME$sub/lib/emacs/make-regexp.el $REPO/make-regexp.el + $GETURL $HOME$sub/lib/emacs/$elib.el $REPO/$elib.el $echon " compiling$echoc" (cd $HOME$sub/lib/emacs; $emacs >/dev/null 2>&1 --no-site-file --batch \ - --eval '(byte-compile-file "make-regexp.el")') + --eval '(byte-compile-file "'"$elib.el"'")') echo " done." fi done