1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-11 06:34:40 +02:00

build: complete the rename of get_date

* 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.
This commit is contained in:
Eric Blake
2010-10-05 11:47:21 -06:00
parent b7459696dc
commit 2f41f563d1
8 changed files with 13 additions and 12 deletions

View File

@@ -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)

View 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

1
doc/.gitignore vendored
View File

@@ -19,5 +19,6 @@ fdl.texi
gendocs_template
get_date.texi
getdate.texi
parse-datetime.texi
stamp-vti
version.texi

View 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,

View 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

2
gnulib

Submodule gnulib updated: ae0a6b2df1...2bb63bfb25

View 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);
}
}

View 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));
}