From: Tom Tromey Date: Wed, 30 Apr 1997 01:12:03 +0000 (+0000) Subject: new mdate-sh X-Git-Tag: Release-1-1p~20 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=741552e5e3c8b73fe2ead79045be4432170a16f9;p=automake.git new mdate-sh --- diff --git a/ChangeLog b/ChangeLog index c48f83ad..b9e90d4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Apr 29 19:11:45 1997 Tom Tromey + + * mdate-sh: New version from Ulrich Drepper. + Mon Apr 28 01:18:05 1997 Tom Tromey * automake.in (handle_configure): Makefile only depends on diff --git a/lib/mdate-sh b/lib/mdate-sh index 1146853b..37171f21 100755 --- a/lib/mdate-sh +++ b/lib/mdate-sh @@ -1,7 +1,7 @@ #!/bin/sh -# mdate-sh - get modification time of a file and pretty-print it -# Copyright (C) 1995, 1997 Free Software Foundation, Inc. -# Written by Ulrich Drepper , June 1995 +# Get modification time of a file or directory and pretty-print it. +# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +# written by Ulrich Drepper , June 1995 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,8 +14,8 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Prevent date giving response in another language. LANG=C @@ -26,13 +26,14 @@ LC_TIME=C export LC_TIME # Get the extended ls output of the file or directory. +# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. if ls -L /dev/null 1>/dev/null 2>&1; then - set - `ls -L -l -d $1` + set - x`ls -L -l -d $1` else - set - `ls -l -d $1` + set - x`ls -l -d $1` fi -# The month is at least the fourth argument. -# (3 shifts here, the next inside the loop) +# The month is at least the fourth argument +# (3 shifts here, the next inside the loop). shift shift shift diff --git a/mdate-sh b/mdate-sh index 1146853b..37171f21 100755 --- a/mdate-sh +++ b/mdate-sh @@ -1,7 +1,7 @@ #!/bin/sh -# mdate-sh - get modification time of a file and pretty-print it -# Copyright (C) 1995, 1997 Free Software Foundation, Inc. -# Written by Ulrich Drepper , June 1995 +# Get modification time of a file or directory and pretty-print it. +# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +# written by Ulrich Drepper , June 1995 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,8 +14,8 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Prevent date giving response in another language. LANG=C @@ -26,13 +26,14 @@ LC_TIME=C export LC_TIME # Get the extended ls output of the file or directory. +# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. if ls -L /dev/null 1>/dev/null 2>&1; then - set - `ls -L -l -d $1` + set - x`ls -L -l -d $1` else - set - `ls -l -d $1` + set - x`ls -l -d $1` fi -# The month is at least the fourth argument. -# (3 shifts here, the next inside the loop) +# The month is at least the fourth argument +# (3 shifts here, the next inside the loop). shift shift shift