emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/make-dist,v


From: Paul Eggert
Subject: [Emacs-diffs] Changes to emacs/make-dist,v
Date: Tue, 12 Sep 2006 16:43:27 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Paul Eggert <eggert>    06/09/12 16:43:25

Index: make-dist
===================================================================
RCS file: /cvsroot/emacs/emacs/make-dist,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -b -r1.221 -r1.222
--- make-dist   5 Jul 2006 06:42:27 -0000       1.221
+++ make-dist   12 Sep 2006 16:43:23 -0000      1.222
@@ -120,8 +120,7 @@
 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.)
+### (Accept only absolute file names.)
 if [ $update = yes ];
 then
   unset EMACS_UNIBYTE
@@ -129,11 +128,15 @@
   then
     EMACS=`pwd`/src/emacs
   else
-    if [ "x$EMACS" = "x" -o "x$EMACS" = "xt" ];
-    then
-      echo You must specify the EMACS environment variable 2>&1
+    case $EMACS in
+      /*) ;;
+      *)
+       if [ ! -f "$EMACS" ]; then
+         echo "$0: You must specify the EMACS environment variable " \
+              "to an absolute file name." 2>&1
       exit 1
-    fi
+       fi;;
+    esac
   fi
 fi
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]