aboutsummaryrefslogtreecommitdiff
path: root/export
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-05-19 22:59:10 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-05-19 22:59:10 +0300
commit008b71a4d58ad33cf5a41e2aa55b9393e8420531 (patch)
tree2923a1840dcd1c2108bfe13b6817bfd8ddcc19d2 /export
parent0f0c3dba3f676bf7a163586855f07ef427da3b4a (diff)
downloadgdbm-008b71a4d58ad33cf5a41e2aa55b9393e8420531.tar.gz
gdbm-008b71a4d58ad33cf5a41e2aa55b9393e8420531.tar.bz2
Remove gdbm-1.8.3 compatibility layer
* configure.ac: Remove gdbm-1.8.3 compatibility layer. Version 1.14.90 * Makefile.am (ACLOCAL_AMFLAGS): Remove deprecated variable. (MAYBE_EXPORT): Remove variable and conditional. * NEWS: Update. * NOTE-WARNING: Update. * README: Update. * doc/gdbm.texi: Update. * export/.gitignore: Remove. * export/Makefile.am: Remove. * export/export.c: Remove.
Diffstat (limited to 'export')
-rw-r--r--export/.gitignore5
-rw-r--r--export/Makefile.am21
-rw-r--r--export/export.c103
3 files changed, 0 insertions, 129 deletions
diff --git a/export/.gitignore b/export/.gitignore
deleted file mode 100644
index 62e7a85..0000000
--- a/export/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-.deps
-.libs
-Makefile
-Makefile.in
-gdbmexport
diff --git a/export/Makefile.am b/export/Makefile.am
deleted file mode 100644
index 9272427..0000000
--- a/export/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-# This file is part of GDBM. -*- Makefile -*-
-# Copyright (C) 2007, 2011, 2017-2018 Free Software Foundation, Inc.
-#
-# GDBM is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GDBM is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
-
-AM_CPPFLAGS = -I$(GDBM183_INCLUDEDIR) -I$(srcdir)/../src
-
-bin_PROGRAMS = gdbmexport
-gdbmexport_SOURCES = export.c
-gdbmexport_LDADD = -L$(GDBM183_LIBDIR) $(GDBM183_LIBRARY)
diff --git a/export/export.c b/export/export.c
deleted file mode 100644
index ede4858..0000000
--- a/export/export.c
+++ /dev/null
@@ -1,103 +0,0 @@
-/* export.c - Stand alone flat file exporter for older versions of GDBM. */
-
-/* This file is part of GDBM, the GNU data base manager.
- Copyright (C) 2007, Free Software Foundation, Inc.
-
- GDBM is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3, or (at your option)
- any later version.
-
- GDBM is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
-
-/* Include system configuration before all else. */
-#include "autoconf.h"
-
-#include "systems.h"
-
-#include <gdbm.h>
-
-/* Pull in gdbm_export() */
-#define GDBM_EXPORT_18
-#include "gdbmexp.c"
-
-void
-usage (char *s)
-{
- printf ("Usage: %s database outfile\n", s);
- printf (" or: %s [-hv]\n", s);
- printf ("Convert GDBM database into a flat dump format.\n");
- printf ("Linked with %s\n", gdbm_version);
- printf ("\n");
- printf ("Report bugs to <%s>.\n", PACKAGE_BUGREPORT);
-}
-
-
-void
-version ()
-{
- printf ("gdbmexport (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION);
- printf ("Copyright (C) 2007 Free Software Foundation, Inc.\n");
- printf ("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
- printf ("This is free software: you are free to change and redistribute it.\n");
- printf ("There is NO WARRANTY, to the extent permitted by law.\n");
-}
-
-
-int
-main(int argc, char *argv[])
-{
- int c;
- GDBM_FILE dbf;
- int flags = 0;
-
- while ((c = getopt (argc, argv, "hlv")) != -1)
- switch (c)
- {
- case 'h':
- usage (argv[0]);
- exit (0);
-
- case 'l':
- flags = GDBM_NOLOCK;
- break;
-
- case 'v':
- version ();
- exit (0);
-
- default:
- usage (argv[0]);
- exit (1);
- }
-
- if (argc != 3)
- {
- usage (argv[0]);
- exit (1);
- }
-
- dbf = gdbm_open (argv[1], 0, GDBM_READER | flags, 0600, NULL);
- if (dbf == NULL)
- {
- fprintf (stderr, "%s: couldn't open database, %s\n", argv[0],
- gdbm_strerror (gdbm_errno));
- exit (1);
- }
-
- if (gdbm_export (dbf, argv[2], GDBM_WRCREAT | flags, 0600) == -1)
- {
- fprintf (stderr, "%s: export failed, %s\n",
- argv[0], gdbm_strerror (gdbm_errno));
- gdbm_close (dbf);
- exit (1);
- }
- gdbm_close (dbf);
- exit (0);
-}

Return to:

Send suggestions and report system problems to the System administrator.