summaryrefslogtreecommitdiff
path: root/lib/mdate-sh
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2005-02-08 23:06:44 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2005-02-08 23:06:44 +0000
commit8fca82c553fddd4466dc08f1421330fd6474b65c (patch)
tree0b23f3526054deeaa33ddfd150940f5ba6d5f103 /lib/mdate-sh
parentfb6fa130d08ed4a6a25ab9447e34b2748987a90b (diff)
downloadautomake-8fca82c553fddd4466dc08f1421330fd6474b65c.tar.gz
* lib/mdate-sh: Check the size of the word following the month to
catch Darwin. This way the filename can contain spaces.
Diffstat (limited to 'lib/mdate-sh')
-rwxr-xr-xlib/mdate-sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mdate-sh b/lib/mdate-sh
index a60e7d71b..4b2efdf91 100755
--- a/lib/mdate-sh
+++ b/lib/mdate-sh
@@ -148,9 +148,9 @@ case $2 in
Dec) month=December; nummonth=12;;
esac
-case $# in
- 4) day=$1;;
- *) day=$3; shift;;
+case $3 in
+ ???*) day=$1;;
+ *) day=$3; shift;;
esac
# Here we have to deal with the problem that the ls output gives either