$NetBSD: patch-ag,v 1.2 2001/11/03 09:59:36 seb Exp $ --- lisp/elisp-comp.orig Tue Aug 8 00:39:31 1995 +++ lisp/elisp-comp @@ -28,13 +28,19 @@ if test $# = 0; then echo 1>&2 "No files given to $0" else + if test -z "$EMACS" || test "$EMACS" = "t"; then + # Value of "t" means we are running in a shell under Emacs. + # Just assume Emacs is called "emacs". + EMACS=emacs + fi + tempdir=elc.$$ mkdir $tempdir cp $* $tempdir cd $tempdir echo "(setq load-path (cons nil load-path))" > script - emacs -batch -l script -f batch-byte-compile *.el + $EMACS -batch -l script -f batch-byte-compile *.el mv *.elc .. cd ..