aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-04-08 00:39:03 +0800
committerChris Toshok <toshok@src.gnome.org>2003-04-08 00:39:03 +0800
commit50b639d988e5881f2245d60f3b5df401eb9447ba (patch)
treefca1d19de0c3dda2f1df40a4f38bc565ed54f57d
parentc764c4946864435665148372f6b0a0560ac5bc50 (diff)
downloadgsoc2013-evolution-50b639d988e5881f2245d60f3b5df401eb9447ba.tar
gsoc2013-evolution-50b639d988e5881f2245d60f3b5df401eb9447ba.tar.gz
gsoc2013-evolution-50b639d988e5881f2245d60f3b5df401eb9447ba.tar.bz2
gsoc2013-evolution-50b639d988e5881f2245d60f3b5df401eb9447ba.tar.lz
gsoc2013-evolution-50b639d988e5881f2245d60f3b5df401eb9447ba.tar.xz
gsoc2013-evolution-50b639d988e5881f2245d60f3b5df401eb9447ba.tar.zst
gsoc2013-evolution-50b639d988e5881f2245d60f3b5df401eb9447ba.zip
remove evolution-addressbook-export.
2003-04-07 Chris Toshok <toshok@ximian.com> * tools/Makefile.am (privlibexec_PROGRAMS): remove evolution-addressbook-export. * tools/evolution-addressbook-export.c: nuke. svn path=/trunk/; revision=20712
-rw-r--r--ChangeLog7
-rw-r--r--tools/Makefile.am4
-rw-r--r--tools/evolution-addressbook-export.c70
3 files changed, 7 insertions, 74 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f0e44ee59..6e0a007368 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2003-04-07 Chris Toshok <toshok@ximian.com>
+ * tools/Makefile.am (privlibexec_PROGRAMS): remove
+ evolution-addressbook-export.
+
+ * tools/evolution-addressbook-export.c: nuke.
+
+2003-04-07 Chris Toshok <toshok@ximian.com>
+
* configure.in: add addressbook/tools/Makefile to AC_OUTPUT.
2003-04-07 Dan Winship <danw@ximian.com>
diff --git a/tools/Makefile.am b/tools/Makefile.am
index eb8ba15f25..385e0513a9 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -4,7 +4,6 @@ privlibexec_SCRIPTS = \
privlibexec_PROGRAMS = \
evolution-addressbook-import \
- evolution-addressbook-export \
evolution-launch-composer \
killev
@@ -48,9 +47,6 @@ evolution_addressbook_import_LDADD = \
$(top_builddir)/addressbook/backend/ebook/libebook.la \
$(top_builddir)/widgets/menus/libmenus.la
-evolution_addressbook_export_LDADD = \
- $(evolution_addressbook_import_LDADD)
-
evolution_addressbook_abuse_LDADD = \
$(evolution_addressbook_import_LDADD)
diff --git a/tools/evolution-addressbook-export.c b/tools/evolution-addressbook-export.c
deleted file mode 100644
index 548feea760..0000000000
--- a/tools/evolution-addressbook-export.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-
-#include <config.h>
-
-#include <bonobo-activation/bonobo-activation.h>
-#include <bonobo/bonobo-main.h>
-#include <backend/ebook/e-book-util.h>
-#include <gnome.h>
-#include <fcntl.h>
-#include <gal/util/e-util.h>
-
-static void
-save_cards (EBook *book, EBookSimpleQueryStatus status, const GList *cards, gpointer closure)
-{
- char *filename = closure;
- char *vcard;
- int result;
- /* This has to be an array so that it's not const. */
- char tmpname[] = "/tmp/evo-addressbook-tmp.XXXXXX";
-
- vcard = e_card_list_get_vcard (cards);
-
- if (filename)
- result = e_write_file (filename, vcard, O_CREAT | O_EXCL);
- else
- result = e_write_file_mkstemp (tmpname, vcard);
- if (result != 0) {
- printf ("failed with result == %d", result);
- }
- else {
- char *name = filename ? filename : tmpname;
- printf ("succeeded writing %s\n", name);
- }
- bonobo_main_quit ();
-}
-
-static void
-use_addressbook (EBook *book, gpointer closure)
-{
- if (book == NULL)
- g_error (_("Error loading default addressbook."));
- e_book_simple_query (book, "(contains \"x-evolution-any-field\" \"\")", save_cards, closure);
-}
-
-int
-main (int argc, char *argv[])
-{
- char *filename = NULL;
-
- struct poptOption options[] = {
- { "output-file", '\0', POPT_ARG_STRING, &filename, 0, N_("Output File"), NULL },
- POPT_AUTOHELP
- { NULL, '\0', 0, NULL, 0, NULL, NULL }
- };
-
- bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- gnome_program_init ("evolution-addressbook-export", VERSION,
- LIBGNOMEUI_MODULE, argc, argv,
- GNOME_PROGRAM_STANDARD_PROPERTIES,
- GNOME_PARAM_POPT_TABLE, options,
- NULL);
-
- e_book_use_default_book (use_addressbook, filename);
-
- bonobo_main ();
-
- return 0;
-}