summaryrefslogtreecommitdiff
path: root/build-aux/mdate-sh
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-03-30 13:18:58 +0000
committerKarl Berry <karl@freefriends.org>2007-03-30 13:18:58 +0000
commitb7c6336e3b77eadca609adaea9bbe369e2b81482 (patch)
tree72723487e33ec2183c3857fdf9e9c90b4814f5fd /build-aux/mdate-sh
parent07784ae4244d8b09651185f26699c213ac693b8d (diff)
downloadgnulib-b7c6336e3b77eadca609adaea9bbe369e2b81482.tar.gz
autoupdate
Diffstat (limited to 'build-aux/mdate-sh')
-rwxr-xr-xbuild-aux/mdate-sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/build-aux/mdate-sh b/build-aux/mdate-sh
index cd916c0a34..83d27009dc 100755
--- a/build-aux/mdate-sh
+++ b/build-aux/mdate-sh
@@ -1,9 +1,9 @@
#!/bin/sh
# Get modification time of a file or directory and pretty-print it.
-scriptversion=2005-06-29.22
+scriptversion=2007-03-30.02
-# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005 Free Software
+# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007 Free Software
# Foundation, Inc.
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
#
@@ -75,6 +75,10 @@ if ls -L /dev/null 1>/dev/null 2>&1; then
else
ls_command='ls -l -d'
fi
+# Avoid user/group names that might have spaces, when possible.
+if ls -n /dev/null 1>/dev/null 2>&1; then
+ ls_command="$ls_command -n"
+fi
# A `ls -l' line looks as follows on OS/2.
# drwxrwx--- 0 Aug 11 2001 foo
@@ -89,7 +93,7 @@ fi
# words should be skipped to get the date.
# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
-set x`ls -l -d /`
+set x`$ls_command /`
# Find which argument is the month.
month=