diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2003-11-09 00:10:50 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2003-11-09 00:10:50 +0000 |
commit | 210797967ab1c23332a32de3e691c98d4e018cdd (patch) | |
tree | fc97a24ce1cf0cb99c699ae6b62c2b1137e40c88 /lib/mdate-sh | |
parent | 73d377d2499b65e04f97bf335a401d4248939fc9 (diff) | |
download | automake-210797967ab1c23332a32de3e691c98d4e018cdd.tar.gz |
* lib/mkinstalldirs: Mention automake-patches@gnu.org and
bug-automake@gnu.org.
* lib/compile, lib/depcomp, lib/elisp-comp, lib/mdate-sh:
Likewise. Also add support for --help and --version.
* lib/py-compile, lib/ylwrap: Likewise, and reindent.
Diffstat (limited to 'lib/mdate-sh')
-rwxr-xr-x | lib/mdate-sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/mdate-sh b/lib/mdate-sh index b610b47a6..05e828b08 100755 --- a/lib/mdate-sh +++ b/lib/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: |