]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: complete the rename of get_date
authorEric Blake <eblake@redhat.com>
Tue, 5 Oct 2010 17:47:21 +0000 (11:47 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 5 Oct 2010 18:12:30 +0000 (12:12 -0600)
* gnulib: Update to latest.
* src/date.c (includes, batch_convert, main): Track rename.
* src/touch.c (includes, get_reldate): Likewise.
* doc/coreutils.texi (Top, Date input formats): Likewise.
* bootstrap.conf (gnulib_modules): Likewise.
* doc/Makefile.am (EXTRA_DIST): Likewise.
* doc/.gitignore: Likewise.
* bootstrap: Synchronize from upstream.

bootstrap
bootstrap.conf
doc/.gitignore
doc/Makefile.am
doc/coreutils.texi
gnulib
src/date.c
src/touch.c

index 29802a1315d3e82342d7ffe33a2079cc13f382d9..49b1e5512587fd075547ffb4079f6050a163dbd6 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2010-10-05.14; # UTC
+scriptversion=2010-10-05.15; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -351,7 +351,7 @@ check_versions() {
       app=libtoolize
     fi
     # Honor $APP variables ($TAR, $AUTOCONF, etc.)
-    appvar=`echo $app | tr 'a-z-' 'A-Z_'`
+    appvar=`echo $app | tr '[a-z]-' '[A-Z]_'`
     test "$appvar" = TAR && appvar=AMTAR
     eval "app=\${$appvar-$app}"
     inst_ver=$(get_version $app)
index a206629100be5c23d23ac0c69e6b988b6fa6ee6a..18ef914afcd7e3ae0f11db2b3c2d41de9256428c 100644 (file)
@@ -89,7 +89,6 @@ gnulib_modules="
   fsync
   ftello
   fts
-  get_date
   getgroups
   gethrxtime
   getline
@@ -154,6 +153,7 @@ gnulib_modules="
   netinet_in
   nproc
   obstack
+  parse-datetime
   pathmax
   perl
   physmem
index f224ac700f19f96f2424cbe383459e6cf1a1325a..7eca8d15767296c7afe315f9b7b3e1acaa735afa 100644 (file)
@@ -19,5 +19,6 @@ fdl.texi
 gendocs_template
 get_date.texi
 getdate.texi
+parse-datetime.texi
 stamp-vti
 version.texi
index e58f173507aa2709d6d39e81f7c405f3944e808d..d627b630ee6ce732e3a25f6b4b381d54667dc488 100644 (file)
@@ -17,7 +17,7 @@
 
 info_TEXINFOS = coreutils.texi
 
-EXTRA_DIST = perm.texi get_date.texi constants.texi fdl.texi
+EXTRA_DIST = perm.texi parse-datetime.texi constants.texi fdl.texi
 
 # The following is necessary if the package name is 8 characters or longer.
 # If the info documentation would be split into 10 or more separate files,
index f4b76309d4fb484854878103780b53fed1ebc60a..4d17ed18b4d87d79ef38e489bbab4ce85e01151e 100644 (file)
@@ -474,7 +474,7 @@ Date input formats
 * Pure numbers in date strings:: 19931219, 1440
 * Seconds since the Epoch::      @@1078100502
 * Specifying time zone rules::   TZ="America/New_York", TZ="UTC0"
-* Authors of get_date::          Bellovin, Eggert, Salz, Berets, et al
+* Authors of parse_datetime::    Bellovin, Eggert, Salz, Berets, et al
 
 Opening the software toolbox
 
@@ -15678,7 +15678,7 @@ outputs 1.0000000000000000007 twice and skips 1.0000000000000000008.
 @chapter File permissions
 @include perm.texi
 
-@include get_date.texi
+@include parse-datetime.texi
 
 @c              What's GNU?
 @c              Arnold Robbins
diff --git a/gnulib b/gnulib
index ae0a6b2df106b7ed760cc393312997adf995cc3b..2bb63bfb25474ea147ee9f1523c0337997359a4c 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit ae0a6b2df106b7ed760cc393312997adf995cc3b
+Subproject commit 2bb63bfb25474ea147ee9f1523c0337997359a4c
index 42f3348288403a7db76fe81a705995ddba10f30f..ad9b4901b7ec47a91f358e87f35e0e23c8b90773 100644 (file)
@@ -27,7 +27,7 @@
 #include "system.h"
 #include "argmatch.h"
 #include "error.h"
-#include "getdate.h"
+#include "parse-datetime.h"
 #include "posixtm.h"
 #include "quote.h"
 #include "stat-time.h"
@@ -281,7 +281,7 @@ batch_convert (const char *input_filename, const char *format)
           break;
         }
 
-      if (! get_date (&when, line, NULL))
+      if (! parse_datetime (&when, line, NULL))
         {
           if (line[line_length - 1] == '\n')
             line[line_length - 1] = '\0';
@@ -500,7 +500,7 @@ main (int argc, char **argv)
             {
               if (set_datestr)
                 datestr = set_datestr;
-              valid_date = get_date (&when, datestr, NULL);
+              valid_date = parse_datetime (&when, datestr, NULL);
             }
         }
 
index 6358b893c22473b324167fa3fa35514bbd5b6027..f9374c07adc98029730b9b44b8079fff91748c2d 100644 (file)
@@ -28,7 +28,7 @@
 #include "argmatch.h"
 #include "error.h"
 #include "fd-reopen.h"
-#include "getdate.h"
+#include "parse-datetime.h"
 #include "posixtm.h"
 #include "posixver.h"
 #include "quote.h"
@@ -112,7 +112,7 @@ static void
 get_reldate (struct timespec *result,
              char const *flex_date, struct timespec const *now)
 {
-  if (! get_date (result, flex_date, now))
+  if (! parse_datetime (result, flex_date, now))
     error (EXIT_FAILURE, 0, _("invalid date format %s"), quote (flex_date));
 }