diff options
author | Jim Meyering <jim@meyering.net> | 2003-11-11 07:13:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-11-11 07:13:26 +0000 |
commit | 98a4c708d5bed39a54b62d092ec4a70d300aedaf (patch) | |
tree | ec7eab3cf1b0e7a41e019d7e25c63f277de7037d /config/mdate-sh | |
parent | c6e903bd693edadc73d12346c33b329aa5928dc8 (diff) | |
download | coreutils-98a4c708d5bed39a54b62d092ec4a70d300aedaf.tar.xz |
update from gnulib
Diffstat (limited to 'config/mdate-sh')
-rwxr-xr-x | config/mdate-sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/config/mdate-sh b/config/mdate-sh index b610b47a6..05e828b08 100755 --- a/config/mdate-sh +++ b/config/mdate-sh @@ -1,5 +1,8 @@ #!/bin/sh # Get modification time of a file or directory and pretty-print it. + +scriptversion=2003-11-09.00 + # Copyright (C) 1995, 1996, 1997, 2003 Free Software Foundation, Inc. # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995 # @@ -22,6 +25,31 @@ # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. +# This file is maintained in Automake, please report +# bugs to <bug-automake@gnu.org> or send patches to +# <automake-patches@gnu.org>. + +case $1 in + '') + echo "$0: No file. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: mdate-sh [--help] [--version] FILE + +Pretty-print the modification time of FILE. + +Report bugs to <bug-automake@gnu.org>. +EOF + exit 0 + ;; + -v | --v*) + echo "mdate-sh $scriptversion" + exit 0 + ;; +esac + # Prevent date giving response in another language. LANG=C export LANG @@ -131,3 +159,12 @@ esac # The result. echo $day $month $year + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: |