projects
/
debian
/
gzip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.3.12
[debian/gzip]
/
build-aux
/
mdate-sh
diff --git
a/build-aux/mdate-sh
b/build-aux/mdate-sh
index cd916c0a34003205a3773df2c9a178a8139b4aad..83d27009dc223aaabde59623ce8873c8c6689f86 100755
(executable)
--- 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.
#!/bin/sh
# Get modification time of a file or directory and pretty-print it.
-scriptversion=200
5-06-29.2
2
+scriptversion=200
7-03-30.0
2
-# 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
#
# 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
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
# 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.
# 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_comman
d /`
# Find which argument is the month.
month=
# Find which argument is the month.
month=