From 797dd02870ed606e1503e0a24b2d1e4e4068244b Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Thu, 8 Apr 1999 09:53:10 +0000 Subject: * src/lid.c (limits.h): Include earlier to avoid RE_DUP_MAX conflict. [From Erick.Branderhorst@asml.nl] (search_flinkv): Bash terminating newline. [From marc@snafu.org] * lisp/elisp-comp: Import more recent version from automake. * libidu/scanners.c (SCAN_CPP_DIRECTIVE): Tolerate leading whitespace before first '#' [From rodneybrown@pmsc.com] (get_token_asm, get_token_c): Move some common leading context into SCAN_CPP_DIRECTIVE. --- lisp/elisp-comp | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'lisp/elisp-comp') diff --git a/lisp/elisp-comp b/lisp/elisp-comp index d9adbfe..96e4aa5 100755 --- a/lisp/elisp-comp +++ b/lisp/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 -- cgit v1.2.3