summaryrefslogtreecommitdiff
path: root/admin/quick-install-emacs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2005-03-02 09:26:43 +0000
committerMiles Bader <miles@gnu.org>2005-03-02 09:26:43 +0000
commit9a1c5fbf826728451ecb318c0788ab1f15ef0b02 (patch)
tree43a7f9f7c1ded8e5b7454b0dc441509eeb1a8210 /admin/quick-install-emacs
parentaad1926a4f348185f2dbdb6ffd1ba86f3d80710c (diff)
downloademacs-9a1c5fbf826728451ecb318c0788ab1f15ef0b02.tar.gz
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).
Diffstat (limited to 'admin/quick-install-emacs')
-rwxr-xr-xadmin/quick-install-emacs9
1 files changed, 5 insertions, 4 deletions
diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs
index 16cd936a783..9a9d1203d96 100755
--- a/admin/quick-install-emacs
+++ b/admin/quick-install-emacs
@@ -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
}