changeset 60340:f6384702a1b6

Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-146 quick-install-emacs: Use mkdir --verbose only when requested 2005-03-02 Miles Bader <miles@gnu.org> * admin/quick-install-emacs: Only use the mkdir --verbose option if the script's --verbose option was specified (this avoids problems with default usage on systems where mkdir doesn't support that option).
author Miles Bader <miles@gnu.org>
date Wed, 02 Mar 2005 09:26:43 +0000
parents 3cd3e3cf3529
children f808df05f1e7
files admin/ChangeLog admin/quick-install-emacs
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/admin/ChangeLog	Wed Mar 02 09:12:54 2005 +0000
+++ b/admin/ChangeLog	Wed Mar 02 09:26:43 2005 +0000
@@ -1,3 +1,9 @@
+2005-03-02  Miles Bader  <miles@gnu.org>
+
+	* quick-install-emacs: Only use the mkdir --verbose option if the
+	script's --verbose option was specified (this avoids problems with
+	default usage on systems where mkdir doesn't support that option).
+
 2005-02-15  Jason Rumney  <jasonr@gnu.org>
 
 	* nt/makedist.bat: Do not rely on non-standard behaviour of
--- a/admin/quick-install-emacs	Wed Mar 02 09:12:54 2005 +0000
+++ b/admin/quick-install-emacs	Wed Mar 02 09:26:43 2005 +0000
@@ -19,15 +19,16 @@
 
 me="`basename $0`"
 
-# Install commands (these commands are also expected to understand the
-# GNU -v (--verbose) option)
+# Install commands (if the user specifies the `--verbose' option, it is
+# passed to these commands, so that feature only works if these commands
+# implement it too)
 LINK='cp -lf'
 COPY='cp -f'
 REMOVE='rm -r'
+MKDIR='mkdir -p'
 
 # Used to execute commands once once we create them
 EXEC='sh'
-MKDIR='mkdir --verbose -p'
 
 NAWK=/usr/bin/nawk
 
@@ -157,7 +158,7 @@
 maybe_mkdir ()
 {
   if ! test -d "$1"; then
-    $MKDIR "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2
+    $MKDIR $VERBOSE "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2
   fi
 }