From 008b71a4d58ad33cf5a41e2aa55b9393e8420531 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 19 May 2018 22:59:10 +0300 Subject: 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. --- export/.gitignore | 5 --- export/Makefile.am | 21 ----------- export/export.c | 103 ----------------------------------------------------- 3 files changed, 129 deletions(-) delete mode 100644 export/.gitignore delete mode 100644 export/Makefile.am delete mode 100644 export/export.c (limited to 'export') 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 . */ - -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 . */ - -/* Include system configuration before all else. */ -#include "autoconf.h" - -#include "systems.h" - -#include - -/* 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 \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); -} -- cgit v1.2.1