aboutsummaryrefslogtreecommitdiffstats
path: root/doc/mdate-sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mdate-sh')
-rwxr-xr-xdoc/mdate-sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/mdate-sh b/doc/mdate-sh
index b610b47a..05e828b0 100755
--- a/doc/mdate-sh
+++ b/doc/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 <[email protected]>, 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 <[email protected]> or send patches to
+
+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 <[email protected]>.
+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: