[gmime/gmime-2-4] Moved uuencode/decode to examples



commit 524d3634f8b8a35cba48d670e17ed4e393a492fc
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Feb 18 09:11:12 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                    |    5 +
 Makefile.am                  |    2 +-
 build/vs2008/uudecode.vcproj |    8 +-
 build/vs2008/uuencode.vcproj |    8 +-
 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 ----
 16 files changed, 50 insertions(+), 729 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 208947c..de3a430 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-18  Jeffrey Stedfast  <fejj gnome org>
+
+	* src/uuencode.c:
+	* src/uudecode.c: Moved to examples/
+
 2012-02-04  Jeffrey Stedfast  <fejj gnome org>
 
 	* configure.in: Added --with-gacdir to fix bug #667072
diff --git a/Makefile.am b/Makefile.am
index 3de8008..1d89314 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = build util gmime src 
+SUBDIRS = build util gmime
 
 if ENABLE_MONO
 SUBDIRS += mono
diff --git a/build/vs2008/uudecode.vcproj b/build/vs2008/uudecode.vcproj
index 297b9eb..bd77e63 100644
--- a/build/vs2008/uudecode.vcproj
+++ b/build/vs2008/uudecode.vcproj
@@ -176,15 +176,15 @@
 			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
 			>
 			<File
-				RelativePath="..\..\src\getopt.c"
+				RelativePath="..\..\examples\getopt.c"
 				>
 			</File>
 			<File
-				RelativePath="..\..\src\getopt1.c"
+				RelativePath="..\..\examples\getopt1.c"
 				>
 			</File>
 			<File
-				RelativePath="..\..\src\uudecode.c"
+				RelativePath="..\..\examples\uudecode.c"
 				>
 			</File>
 		</Filter>
@@ -194,7 +194,7 @@
 			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
 			>
 			<File
-				RelativePath="..\..\src\getopt.h"
+				RelativePath="..\..\examples\getopt.h"
 				>
 			</File>
 		</Filter>
diff --git a/build/vs2008/uuencode.vcproj b/build/vs2008/uuencode.vcproj
index e23c006..c6c96dc 100644
--- a/build/vs2008/uuencode.vcproj
+++ b/build/vs2008/uuencode.vcproj
@@ -176,15 +176,15 @@
 			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
 			>
 			<File
-				RelativePath="..\..\src\getopt.c"
+				RelativePath="..\..\examples\getopt.c"
 				>
 			</File>
 			<File
-				RelativePath="..\..\src\getopt1.c"
+				RelativePath="..\..\examples\getopt1.c"
 				>
 			</File>
 			<File
-				RelativePath="..\..\src\uuencode.c"
+				RelativePath="..\..\examples\uuencode.c"
 				>
 			</File>
 		</Filter>
@@ -194,7 +194,7 @@
 			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
 			>
 			<File
-				RelativePath="..\..\src\getopt.h"
+				RelativePath="..\..\examples\getopt.h"
 				>
 			</File>
 		</Filter>
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 79f93df..6ff20a2 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-2.4.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]