diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-10-11 14:44:13 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-10-11 14:44:38 -0700 |
commit | eb7d81eb2a84f222795603097257a4d76732d504 (patch) | |
tree | 168a930a57027e3327ca04be24ccd7532a1b5bc8 | |
parent | 60cc7709da5317fca021d9fe4e46a943e528acc8 (diff) | |
download | paxutils-eb7d81eb2a84f222795603097257a4d76732d504.tar.gz |
Adjust to recent gnulib changes with parse-datetime and getopt-gnu.
* doc/.gitignore: Replace getdate.texi with parse-datetime.texi.
* gnulib.modules: Replace getdate with parse-datetime, and
getopt with getopt-gnu.
* paxlib.modules: Replace getopt with getopt-gnu.
* tests/genfile.c: Include parse-datetime.h, not getdate.h.
All instances of get_date replaced with parse_datetime.
-rw-r--r-- | doc/.gitignore | 2 | ||||
-rw-r--r-- | gnulib.modules | 4 | ||||
-rw-r--r-- | paxlib.modules | 2 | ||||
-rw-r--r-- | tests/genfile.c | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/doc/.gitignore b/doc/.gitignore index 90117de..870487d 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1 +1 @@ -getdate.texi +parse-datetime.texi diff --git a/gnulib.modules b/gnulib.modules index fce4f7a..d3d6b71 100644 --- a/gnulib.modules +++ b/gnulib.modules @@ -6,12 +6,12 @@ configmake dirname fseeko full-write -getdate gettext -getopt +getopt-gnu gitlog-to-changelog inttostr obstack +parse-datetime quote quotearg safe-read diff --git a/paxlib.modules b/paxlib.modules index 0b25909..5efe05b 100644 --- a/paxlib.modules +++ b/paxlib.modules @@ -6,7 +6,7 @@ dirname error fileblocks full-write -getopt +getopt-gnu gettext hash inttostr diff --git a/tests/genfile.c b/tests/genfile.c index 998e6a6..8541be6 100644 --- a/tests/genfile.c +++ b/tests/genfile.c @@ -28,7 +28,7 @@ #include <argmatch.h> #include <argp.h> #include <argcv.h> -#include <getdate.h> +#include <parse-datetime.h> #include <inttostr.h> #include <fcntl.h> #include <sys/stat.h> @@ -363,7 +363,7 @@ parse_opt (int key, char *arg, struct argp_state *state) break; case OPT_DATE: - if (!get_date (&touch_time, arg, NULL)) + if (! parse_datetime (&touch_time, arg, NULL)) argp_error (state, _("Unknown date format")); break; @@ -854,7 +854,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - get_date (&touch_time, "now", NULL); + parse_datetime (&touch_time, "now", NULL); /* Decode command options. */ |