]> code.delx.au - gnu-emacs/blobdiff - admin/quick-install-emacs
(nnmail-extra-headers): Add defvar.
[gnu-emacs] / admin / quick-install-emacs
index 16cd936a7835e22594d62ca5273cdc4cd06a4e4f..9a9d1203d96e7163628f0cdc55249d586efd700a 100755 (executable)
@@ -19,15 +19,16 @@ VERBOSE=''
 
 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 @@ DST_INFO="$prefix/info"
 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
 }