summaryrefslogtreecommitdiff
path: root/elisp-comp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1996-10-11 04:54:56 +0000
committerTom Tromey <tromey@redhat.com>1996-10-11 04:54:56 +0000
commit3192483c7c5b71859820749efd31b741b59f8215 (patch)
treeb994486794418390038dbc6b506d80e6a1a1aee2 /elisp-comp
parentff05038553e87d911809d2c7c94522ed0d22de7a (diff)
downloadautomake-3192483c7c5b71859820749efd31b741b59f8215.tar.gz
Emacs lisp fixups. Removed UNMAINT
Diffstat (limited to 'elisp-comp')
-rwxr-xr-xelisp-comp27
1 files changed, 17 insertions, 10 deletions
diff --git a/elisp-comp b/elisp-comp
index d9adbfeea..96e4aa584 100755
--- a/elisp-comp
+++ b/elisp-comp
@@ -26,17 +26,24 @@
# they require or load-library one another.
if test $# = 0; then
- echo 1>&2 "No files given to $0"
+ echo 1>&2 "No files given to $0"
+ exit 1
else
- tempdir=elc.$$
- mkdir $tempdir
- cp $* $tempdir
- cd $tempdir
+ 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
- echo "(setq load-path (cons nil load-path))" > script
- emacs -batch -l script -f batch-byte-compile *.el
- mv *.elc ..
+ tempdir=elc.$$
+ mkdir $tempdir
+ cp $* $tempdir
+ cd $tempdir
- cd ..
- rm -fr $tempdir
+ echo "(setq load-path (cons nil load-path))" > script
+ $EMACS -q -batch -l script -f batch-byte-compile *.el
+ mv *.elc ..
+
+ cd ..
+ rm -fr $tempdir
fi