]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
example programs are now located in doc/examples directory.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 15 Nov 2002 21:13:06 +0000 (21:13 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 15 Nov 2002 21:13:06 +0000 (21:13 +0000)
NEWS
configure.in
doc/Makefile.am
doc/examples/.cvsignore [new file with mode: 0644]
doc/examples/Makefile.am [new file with mode: 0644]
doc/tex/Makefile.am

diff --git a/NEWS b/NEWS
index 7fbbb75b23d5a5bdb4996f013774716e422c501a..d20de755c0a3df1a4d3d2c0dea752534a250ae3f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 Version 0.?.?
 - Added "gnutls/compat.h" header which must be included if the obsolete 
   0.4.x API is to be used.
+- Example programs are now stored in doc/examples/
 
 Version 0.5.11 (5/11/2002)
 - Some fixes in 'gnutls-cli' client program to prevent some segmentation 
index 2ceb3f675c2941af62463e35ca251f6bf2ef5cff..c1324c9720c5334b7215648ced7f951d5e11e74c 100644 (file)
@@ -393,6 +393,7 @@ AC_CONFIG_FILES([Makefile src/Makefile libextra/Makefile lib/Makefile \
 lib/libgnutls-config libextra/libgnutls-extra-config \
 doc/Makefile src/x509/Makefile src/srp/Makefile src/openpgp/Makefile \
 doc/tex/Makefile doc/tex/cover.tex doc/scripts/Makefile \
+doc/examples/Makefile \
 includes/Makefile includes/gnutls/Makefile])
 
 AC_OUTPUT
index 29e9e9cf6232958698023e1ae2c00c7c0c2dc220..0512a951094cef54b168a11c69b2f76a4482c1fe 100644 (file)
@@ -1,3 +1,3 @@
 EXTRA_DIST = TODO README.CVS README.autoconf
-SUBDIRS = tex scripts
+SUBDIRS = tex scripts examples
 
diff --git a/doc/examples/.cvsignore b/doc/examples/.cvsignore
new file mode 100644 (file)
index 0000000..786b61a
--- /dev/null
@@ -0,0 +1,2 @@
+*.c
+Makefile.in
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
new file mode 100644 (file)
index 0000000..4d94a8f
--- /dev/null
@@ -0,0 +1,5 @@
+EXTRA_DIST = alert.c client-srp.c serv-export.c \
+       client1.c client2.c info.c rfc2818.c \
+       serv1.c client-resume.c serv-srp.c \
+       serv-pgp.c
+
index 66a84feaa5f2dc10451d9a4af7fca72e33282538..a8f53048565f29c4911f6bc09b321d7aa1b034ad 100644 (file)
@@ -1,6 +1,6 @@
 EXTRA_DIST = gnutls.tex gnutls.ps \
        fdl.tex cover.tex.in gnutls-logo.ps layers.eps pgp-fig1.eps \
-       x509-1.eps internals.eps
+       x509-1.eps internals.eps examples
 
 EXAMPLE_OBJECTS = ex-alert.tex ex-client-srp.tex ex-serv-export.tex \
        ex-client1.tex ex-client2.tex ex-info.tex ex-rfc2818.tex \
@@ -43,11 +43,10 @@ clean:
 
 examples: $(EXAMPLE_OBJECTS)
        @echo "Generating example programs... "
-       @echo "They will be placed in examples/ directory."
+       @echo "They will be placed in doc/examples/ directory."
        @echo ""
-       @-mkdir examples/ && \
-       for i in $(EXAMPLE_OBJECTS); do \
+       @for i in $(EXAMPLE_OBJECTS); do \
                out=`echo -n $$i|sed s/\.tex//`; \
-               cat $$i|grep -v "^\\\\" > examples/$$out.c; \
+               cat $$i|grep -v "^\\\\" > ../examples/$$out.c; \
                done