Ignore:
Timestamp:
Feb 3, 2017, 2:02:34 PM (8 years ago)
Author:
Silvan Scherrer
Message:

cpio: update vendor to version 2.12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified cpio/vendor/current/build-aux/mdate-sh

    r118 r1964  
    22# Get modification time of a file or directory and pretty-print it.
    33
    4 scriptversion=2010-02-22.21; # UTC
    5 
    6 # Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009, 2010
    7 # Free Software Foundation, Inc.
     4scriptversion=2010-08-21.06; # UTC
     5
     6# Copyright (C) 1995-2015 Free Software Foundation, Inc.
    87# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
    98#
     
    3029# <automake-patches@gnu.org>.
    3130
     31if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     32  emulate sh
     33  NULLCMD=:
     34  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     35  # is contrary to our usage.  Disable this feature.
     36  alias -g '${1+"$@"}'='"$@"'
     37  setopt NO_GLOB_SUBST
     38fi
     39
    3240case $1 in
    3341  '')
    34      echo "$0: No file.  Try \`$0 --help' for more information." 1>&2
     42     echo "$0: No file.  Try '$0 --help' for more information." 1>&2
    3543     exit 1;
    3644     ;;
     
    5260esac
    5361
     62error ()
     63{
     64  echo "$0: $1" >&2
     65  exit 1
     66}
     67
     68
    5469# Prevent date giving response in another language.
    5570LANG=C
     
    6176
    6277# GNU ls changes its time format in response to the TIME_STYLE
    63 # variable.  Since we cannot assume `unset' works, revert this
     78# variable.  Since we cannot assume 'unset' works, revert this
    6479# variable to its documented default.
    6580if test "${TIME_STYLE+set}" = set; then
     
    8196fi
    8297
    83 # A `ls -l' line looks as follows on OS/2.
     98# A 'ls -l' line looks as follows on OS/2.
    8499#  drwxrwx---        0 Aug 11  2001 foo
    85100# This differs from Unix, which adds ownership information.
     
    88103# To find the date, we split the line on spaces and iterate on words
    89104# until we find a month.  This cannot work with files whose owner is a
    90 # user named `Jan', or `Feb', etc.  However, it's unlikely that `/'
     105# user named "Jan", or "Feb", etc.  However, it's unlikely that '/'
    91106# will be owned by a user whose name is a month.  So we first look at
    92107# the extended ls output of the root directory to decide how many
     
    101116until test $month
    102117do
     118  test $# -gt 0 || error "failed parsing '$ls_command /' output"
    103119  shift
    104120  # Add another shift to the command.
     
    120136done
    121137
     138test -n "$month" || error "failed parsing '$ls_command /' output"
     139
    122140# Get the extended ls output of the file or directory.
    123 set dummy x`eval "$ls_command \"\$save_arg1\""`
     141set dummy x`eval "$ls_command \"\\\$save_arg1\""`
    124142
    125143# Remove all preceding arguments
Note: See TracChangeset for help on using the changeset viewer.