diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2010-04-21 18:13:44 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2010-04-22 01:32:55 +0200 |
commit | f81fe080e5e73e70f54deb8bab5fe736e374f52e (patch) | |
tree | db6f80ee3b26fa016657c063c854be86e7246d54 /bootstrap.conf | |
parent | 369399629764ba06d598d04d94abc3e9a9ad729d (diff) | |
download | patch-f81fe080e5e73e70f54deb8bab5fe736e374f52e.tar.gz |
Replace timestamp parsing code with gnulib getdate
* src/Makefile.am (patch_SOURCES): Remove maketime.c, maketime.h,
partime.c, and partime.h.
(patch_LDFLAGS): Add LIB_CLOCK_GETTIME for clock_gettime().
* src/util.c: Replace maketime.h and partime.h with getdate.h.
(fetchname): Replace str2time() with get_date(). Sanitize the test
for epoch timestamps.
* src/patch.c (main): When --set-utc is given, set the TZ environment
variable to UTC so that get_date() will default to UTC timestamps.
* tests/preserve-mode-and-timestamp: Switching to get_date() revealed
that str2time() was ignoring timezones. In order to test --set-utc
now that get_date() fixes this, we must use timestamps that do not
include timestamps here.
* bootstrap.conf: Add the clock-time, getdate, gettime, and setenv
modules.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index ae97aa9..bf624f3 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -20,13 +20,16 @@ gnulib_modules=" argmatch backupfile +clock-time diffseq dirname dup2 exitfail extensions full-write +getdate getopt-gnu +gettime git-version-gen hash malloc @@ -36,6 +39,7 @@ quotearg realloc rename rmdir +setenv ssize_t stdbool stdlib |