[gmime] Moved uuencode/decode to examples/
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Moved uuencode/decode to examples/
- Date: Sat, 18 Feb 2012 13:21:49 +0000 (UTC)
commit 5c860b6b3200cf2e739cc5f382e4b7f22c3c1630
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sat Feb 18 08:20:53 2012 -0500
Moved uuencode/decode to examples/
2012-02-18 Jeffrey Stedfast <fejj gnome org>
* src/uuencode.c:
* src/uudecode.c: Moved to examples/
ChangeLog | 2 +
Makefile.am | 2 +-
configure.ac | 1 -
examples/.gitignore | 2 +
examples/Makefile.am | 18 ++-
examples/README | 17 ++
{src => examples}/getopt.c | 0
{src => examples}/getopt.h | 0
{src => examples}/getopt1.c | 0
{src => examples}/uudecode.c | 0
{src => examples}/uuencode.c | 0
src/.gitignore | 7 -
src/COPYING | 340 ------------------------------------------
src/LICENSE | 340 ------------------------------------------
src/Makefile.am | 32 ----
15 files changed, 39 insertions(+), 722 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cefea58..c280ced 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+2012-02-18 Jeffrey Stedfast <fejj gnome org>
+
2012-02-17 Jeffrey Stedfast <fejj gnome org>
* gmime/gmime-gpg-context.c (gpg_verify): In cases where gpg does
diff --git a/Makefile.am b/Makefile.am
index f1a658f..8415d0b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = m4 build util gmime src
+SUBDIRS = m4 build util gmime
if ENABLE_MONO
SUBDIRS += mono
diff --git a/configure.ac b/configure.ac
index c500092..e590019 100644
--- a/configure.ac
+++ b/configure.ac
@@ -627,7 +627,6 @@ mono/Makefile
mono/AssemblyInfo.cs
mono/gmime-sharp.dll.config
mono/gmime-sharp.pc
-src/Makefile
tests/Makefile
tools/Makefile
gmime.spec
diff --git a/examples/.gitignore b/examples/.gitignore
index 7fde84a..e792125 100644
--- a/examples/.gitignore
+++ b/examples/.gitignore
@@ -5,3 +5,5 @@ Makefile
*.o
basic-example
imap-example
+uuencode
+uudecode
diff --git a/examples/Makefile.am b/examples/Makefile.am
index bc067a6..021df93 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -6,7 +6,7 @@ extra_DIST = README
INCLUDES = -I$(top_srcdir) $(GMIME_CFLAGS) $(GLIB_CFLAGS)
-noinst_PROGRAMS = basic-example imap-example
+noinst_PROGRAMS = basic-example imap-example uuencode uudecode
DEPS = \
$(top_builddir)/util/libutil.la \
@@ -17,6 +17,12 @@ LDADDS = \
$(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la \
$(GLIB_LIBS)
+if SYSTEM_GETOPT
+GETOPT_SOURCES =
+else
+GETOPT_SOURCES = getopt.c getopt.h getopt1.c
+endif
+
basic_example_SOURCES = basic-example.c
basic_example_LDFLAGS =
basic_example_DEPENDENCIES = $(DEPS)
@@ -26,3 +32,13 @@ imap_example_SOURCES = imap-example.c
imap_example_LDFLAGS =
imap_example_DEPENDENCIES = $(DEPS)
imap_example_LDADD = $(LDADDS)
+
+uuencode_SOURCES = $(GETOPT_SOURCES) uuencode.c
+uuencode_LDFLAGS =
+uuencode_DEPENDENCIES = $(DEPS)
+uuencode_LDADD = $(LDADDS)
+
+uudecode_SOURCES = $(GETOPT_SOURCES) uudecode.c
+uudecode_LDFLAGS =
+uudecode_DEPENDENCIES = $(DEPS)
+uudecode_LDADD = $(LDADDS)
diff --git a/examples/README b/examples/README
index 9ce5de1..270201b 100644
--- a/examples/README
+++ b/examples/README
@@ -25,6 +25,23 @@ I think you'll find this example is worth looking at if you plan on
using GMime with your IMAP library.
+Example: uuencode.c
+-------------------
+
+This program illustrates how to use the low-level MIME encoding
+routines (specifically the uuencode and base64 encoding
+routines). You'll likely find that this program outperforms GNU's
+implementation of uuencode.
+
+
+Example: uudecode.c
+-------------------
+
+This program illustrates how to use the low-level MIME decoding
+routines (specifically the uudecode and base64 decoding
+routines). You'll likely find that this program outperforms GNU's
+implementation of uudecode.
+
Don't forget to take a look at any test programs that came bundled
with this distribution (they will be in tests/), as they will also
diff --git a/src/getopt.c b/examples/getopt.c
similarity index 100%
rename from src/getopt.c
rename to examples/getopt.c
diff --git a/src/getopt.h b/examples/getopt.h
similarity index 100%
rename from src/getopt.h
rename to examples/getopt.h
diff --git a/src/getopt1.c b/examples/getopt1.c
similarity index 100%
rename from src/getopt1.c
rename to examples/getopt1.c
diff --git a/src/uudecode.c b/examples/uudecode.c
similarity index 100%
rename from src/uudecode.c
rename to examples/uudecode.c
diff --git a/src/uuencode.c b/examples/uuencode.c
similarity index 100%
rename from src/uuencode.c
rename to examples/uuencode.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]