From b967da6e3946105b51e1d5140f8f764c122f1dfe Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 2 Apr 1997 07:23:13 +0000 Subject: [PATCH] mdate-sh fix --- ChangeLog | 3 +++ TODO | 4 ++++ lib/mdate-sh | 6 +++--- mdate-sh | 6 +++--- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc2265e47..53e705a04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Wed Apr 2 00:03:50 1997 Tom Tromey + * mdate-sh: Use "ls -d" so mdate-sh can be run on a directory. + From Bruno Haible. + * automake.in (handle_programs): Error if LIBADD used where LDADD meant. (handle_libraries): Error if LDADD used where LIBADD meant. diff --git a/TODO b/TODO index 162ca92d7..49c473b43 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,10 @@ * NORMAL_INSTALL / NORMAL_UNINSTALL -vs- recursive rules [ requires changes to the standard, I think ] +* dependency tracking doesn't work well when a file is removed + the new code to track header dependencies exacerbates this + what is the fix? + * make sure `missing' defines are generated * copyrights on m4 files, aclocal output diff --git a/lib/mdate-sh b/lib/mdate-sh index 3eeeca456..74e00f698 100755 --- a/lib/mdate-sh +++ b/lib/mdate-sh @@ -25,11 +25,11 @@ export LC_ALL LC_TIME=C export LC_TIME -# Get the extended ls output of the file. +# Get the extended ls output of the file or directory. if ls -L /dev/null 1>/dev/null 2>&1; then - set - `ls -L -l $1` + set - `ls -L -l -d $1` else - set - `ls -l $1` + set - `ls -l -d $1` fi # The month is at least the fourth argument. # (3 shifts here, the next inside the loop) diff --git a/mdate-sh b/mdate-sh index 3eeeca456..74e00f698 100755 --- a/mdate-sh +++ b/mdate-sh @@ -25,11 +25,11 @@ export LC_ALL LC_TIME=C export LC_TIME -# Get the extended ls output of the file. +# Get the extended ls output of the file or directory. if ls -L /dev/null 1>/dev/null 2>&1; then - set - `ls -L -l $1` + set - `ls -L -l -d $1` else - set - `ls -l $1` + set - `ls -l -d $1` fi # The month is at least the fourth argument. # (3 shifts here, the next inside the loop) -- 2.47.3