diff options
author | Bruno Haible <bruno@clisp.org> | 2005-02-23 12:11:32 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:12:16 +0200 |
commit | 506b1f8abda78a623b59f2e8464c9e0bdc683f76 (patch) | |
tree | 94094bb0970f067418c4a4a4b0fab3fc59eb84e3 | |
parent | b2aace81e00c8c7111be05c177213257a5a84a5f (diff) | |
download | external_gettext-506b1f8abda78a623b59f2e8464c9e0bdc683f76.zip external_gettext-506b1f8abda78a623b59f2e8464c9e0bdc683f76.tar.gz external_gettext-506b1f8abda78a623b59f2e8464c9e0bdc683f76.tar.bz2 |
Upgrade to automake-1.9.5.
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | config/mdate-sh | 39 | ||||
-rwxr-xr-x | config/missing | 20 |
3 files changed, 47 insertions, 17 deletions
@@ -1,3 +1,8 @@ +2005-02-23 Bruno Haible <bruno@clisp.org> + + * config/mdate-sh: Upgrade to automake-1.9.5. + * config/missing: Upgrade to automake-1.9.5. + 2005-02-12 Bruno Haible <bruno@clisp.org> * config/ltmain.sh: Upgrade to libtool-1.5.14. diff --git a/config/mdate-sh b/config/mdate-sh index 881782e..4b2efdf 100755 --- a/config/mdate-sh +++ b/config/mdate-sh @@ -1,9 +1,10 @@ #!/bin/sh # Get modification time of a file or directory and pretty-print it. -scriptversion=2004-12-08.12 +scriptversion=2005-02-07.09 -# Copyright (C) 1995, 1996, 1997, 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005 Free Software +# Foundation, Inc. # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995 # # This program is free software; you can redistribute it and/or modify @@ -42,11 +43,11 @@ Pretty-print the modification time of FILE. Report bugs to <bug-automake@gnu.org>. EOF - exit 0 + exit $? ;; -v | --v*) echo "mdate-sh $scriptversion" - exit 0 + exit $? ;; esac @@ -107,13 +108,32 @@ do done # Get the extended ls output of the file or directory. -set x`eval "$ls_command \"\$save_arg1\""` +set dummy x`eval "$ls_command \"\$save_arg1\""` # Remove all preceding arguments eval $command -# Get the month. Next argument is day, followed by the year or time. -case $1 in +# Because of the dummy argument above, month is in $2. +# +# On a POSIX system, we should have +# +# $# = 5 +# $1 = file size +# $2 = month +# $3 = day +# $4 = year or time +# $5 = filename +# +# On Darwin 7.7.0 and 7.6.0, we have +# +# $# = 4 +# $1 = day +# $2 = month +# $3 = year or time +# $4 = filename + +# Get the month. +case $2 in Jan) month=January; nummonth=1;; Feb) month=February; nummonth=2;; Mar) month=March; nummonth=3;; @@ -128,7 +148,10 @@ case $1 in Dec) month=December; nummonth=12;; esac -day=$2 +case $3 in + ???*) day=$1;; + *) day=$3; shift;; +esac # Here we have to deal with the problem that the ls output gives either # the time of day or the year. diff --git a/config/missing b/config/missing index 7e58e7f..09edd88 100755 --- a/config/missing +++ b/config/missing @@ -1,9 +1,9 @@ #! /bin/sh # Common stub for a few missing GNU programs while installing. -scriptversion=2004-09-07.08 +scriptversion=2005-02-08.22 -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. @@ -87,12 +87,12 @@ Supported PROGRAM values: yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to <bug-automake@gnu.org>." - exit 0 + exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" - exit 0 + exit $? ;; -*) @@ -288,14 +288,16 @@ WARNING: \`$1' is $msg. You should only need it if call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." + # The file to touch is that specified with -o ... file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` - fi - if test -n "$file"; then - touch $file + # ... or it is the one specified with @setfilename ... + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` + # ... or it is derived from the source name (dir/f.texi becomes f.info) + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi + touch $file ;; tar) |