automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: mdate-sh improvement


From: Alexandre Duret-Lutz
Subject: FYI: mdate-sh improvement
Date: Wed, 09 Feb 2005 00:06:21 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

I'm installing this on HEAD and branch-1-9.

2005-02-08  Stepan Kasal  <address@hidden>

        * lib/mdate-sh: Check the size of the word following the month to
        catch Darwin.  This way the filename can contain spaces.

Index: lib/mdate-sh
===================================================================
RCS file: /cvs/automake/automake/lib/mdate-sh,v
retrieving revision 1.15
diff -u -r1.15 mdate-sh
--- lib/mdate-sh        7 Feb 2005 08:31:59 -0000       1.15
+++ lib/mdate-sh        8 Feb 2005 23:05:11 -0000
@@ -148,9 +148,9 @@
   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

-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]