]> code.delx.au - gnu-emacs/commitdiff
Don't accept EMACS=t when testing for $EMACS set.
authorKarl Heuer <kwzh@gnu.org>
Fri, 10 Apr 1998 09:46:15 +0000 (09:46 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 10 Apr 1998 09:46:15 +0000 (09:46 +0000)
make-dist

index 97eaacd631877b24f1d237a03bfb6bb5bd93eed3..8182f70106b7a946e2ef9af718bb572ed5c8c388 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -91,13 +91,15 @@ if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then
 fi
 
 ### Find where to run Emacs.
+### (We don't accept EMACS=t as an answer, since that probably only means
+### that the shell is running in an Emacs window.)
 if [ $update = yes ];
 then
   if [ -f src/emacs ];
   then
     EMACS=`pwd`/src/emacs
   else
-    if [ x$EMACS = x ];
+    if [ "x$EMACS" = "x" -o "x$EMACS" = "xt" ];
     then 
       echo You must specify the EMACS environment variable 2>&1
       exit 1