The R Project SVN R

Rev

Rev 24561 | Rev 34432 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24561 Rev 28188
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# Get modification time of a file or directory and pretty-print it.
2
# Get modification time of a file or directory and pretty-print it.
-
 
3
 
-
 
4
scriptversion=2003-11-09.00
-
 
5
 
3
# Copyright (C) 1995, 1996, 1997, 2003  Free Software Foundation, Inc.
6
# Copyright (C) 1995, 1996, 1997, 2003  Free Software Foundation, Inc.
4
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
7
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
5
#
8
#
6
# This program is free software; you can redistribute it and/or modify
9
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
10
# it under the terms of the GNU General Public License as published by
Line 20... Line 23...
20
# As a special exception to the GNU General Public License, if you
23
# As a special exception to the GNU General Public License, if you
21
# distribute this file as part of a program that contains a
24
# distribute this file as part of a program that contains a
22
# configuration script generated by Autoconf, you may include it under
25
# configuration script generated by Autoconf, you may include it under
23
# the same distribution terms that you use for the rest of that program.
26
# the same distribution terms that you use for the rest of that program.
24
 
27
 
-
 
28
# This file is maintained in Automake, please report
-
 
29
# bugs to <bug-automake@gnu.org> or send patches to
-
 
30
# <automake-patches@gnu.org>.
-
 
31
 
-
 
32
case $1 in
-
 
33
  '')
-
 
34
     echo "$0: No file.  Try \`$0 --help' for more information." 1>&2
-
 
35
     exit 1;
-
 
36
     ;;
-
 
37
  -h | --h*)
-
 
38
    cat <<\EOF
-
 
39
Usage: mdate-sh [--help] [--version] FILE
-
 
40
 
-
 
41
Pretty-print the modification time of FILE.
-
 
42
 
-
 
43
Report bugs to <bug-automake@gnu.org>.
-
 
44
EOF
-
 
45
    exit 0
-
 
46
    ;;
-
 
47
  -v | --v*)
-
 
48
    echo "mdate-sh $scriptversion"
-
 
49
    exit 0
-
 
50
    ;;
-
 
51
esac
-
 
52
 
25
# Prevent date giving response in another language.
53
# Prevent date giving response in another language.
26
LANG=C
54
LANG=C
27
export LANG
55
export LANG
28
LC_ALL=C
56
LC_ALL=C
29
export LC_ALL
57
export LC_ALL
Line 129... Line 157...
129
  *) year=$3;;
157
  *) year=$3;;
130
esac
158
esac
131
 
159
 
132
# The result.
160
# The result.
133
echo $day $month $year
161
echo $day $month $year
-
 
162
 
-
 
163
# Local Variables:
-
 
164
# mode: shell-script
-
 
165
# sh-indentation: 2
-
 
166
# eval: (add-hook 'write-file-hooks 'time-stamp)
-
 
167
# time-stamp-start: "scriptversion="
-
 
168
# time-stamp-format: "%:y-%02m-%02d.%02H"
-
 
169
# time-stamp-end: "$"
-
 
170
# End: