Changeset 055e668 in rtems for mdate-sh


Ignore:
Timestamp:
Dec 13, 2011, 4:59:22 AM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
6649644
Parents:
c444d1e
Message:

2011-12-13 Ralf Corsépius <ralf.corsepius@…>

  • compile, depcomp, mdate-sh, texinfo.tex: Update from automake-1.11.1b.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mdate-sh

    rc444d1e r055e668  
    22# Get modification time of a file or directory and pretty-print it.
    33
    4 scriptversion=2009-04-28.21; # UTC
    5 
    6 # Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009 Free
    7 # Software Foundation, Inc.
     4scriptversion=2010-08-21.06; # UTC
     5
     6# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009, 2010
     7# Free Software Foundation, Inc.
    88# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
    99#
     
    2929# bugs to <bug-automake@gnu.org> or send patches to
    3030# <automake-patches@gnu.org>.
     31
     32if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     33  emulate sh
     34  NULLCMD=:
     35  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     36  # is contrary to our usage.  Disable this feature.
     37  alias -g '${1+"$@"}'='"$@"'
     38  setopt NO_GLOB_SUBST
     39fi
    3140
    3241case $1 in
     
    3948Usage: mdate-sh [--help] [--version] FILE
    4049
    41 Pretty-print the modification time of FILE.
     50Pretty-print the modification day of FILE, in the format:
     511 January 1970
    4252
    4353Report bugs to <bug-automake@gnu.org>.
     
    5161esac
    5262
     63error ()
     64{
     65  echo "$0: $1" >&2
     66  exit 1
     67}
     68
     69
    5370# Prevent date giving response in another language.
    5471LANG=C
     
    100117until test $month
    101118do
     119  test $# -gt 0 || error "failed parsing \`$ls_command /' output"
    102120  shift
    103121  # Add another shift to the command.
     
    119137done
    120138
     139test -n "$month" || error "failed parsing \`$ls_command /' output"
     140
    121141# Get the extended ls output of the file or directory.
    122 set dummy x`eval "$ls_command \"\$save_arg1\""`
     142set dummy x`eval "$ls_command \"\\\$save_arg1\""`
    123143
    124144# Remove all preceding arguments
Note: See TracChangeset for help on using the changeset viewer.