]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated documentation for included programs.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 14 Feb 2012 11:05:13 +0000 (12:05 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 14 Feb 2012 11:05:13 +0000 (12:05 +0100)
doc/Makefile.am
doc/gnutls.texi
doc/scripts/cleanup-autogen.pl [new file with mode: 0755]

index e07d90b2a240e8059e585897d34f7a121b998eb9..28c16fafc142e2e1c27bead24da2a5783a3e9210 100644 (file)
@@ -30,41 +30,57 @@ endif
 
 invoke-gnutls-cli.texi: ../src/cli-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@
 
 invoke-gnutls-cli-debug.texi: ../src/cli-debug-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@
 
 invoke-gnutls-serv.texi: ../src/serv-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@
 
 invoke-certtool.texi: ../src/certtool-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@
 
-invoke-srptool.texi: ../src/srptool-args.def
+invoke-ocsptool.texi: ../src/ocsptool-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       sed -i 's/@subsection/@subsubsection/g' $@ && \
-       sed -i 's/@section/@subsection/g' $@ && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@
 
-invoke-ocsptool.texi: ../src/ocsptool-args.def
+invoke-srptool.texi: ../src/srptool-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@ && \
+       sed -i 's/@subheading/@subsubheading/g' ../doc/$@ && \
+       sed -i 's/@section/@subsection/g' ../doc/$@
 
 invoke-psktool.texi: ../src/psk-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       sed -i 's/@subsection/@subsubsection/g' $@ && \
-       sed -i 's/@section/@subsection/g' $@ && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@ && \
+       sed -i 's/@subheading/@subsubheading/g' ../doc/$@ && \
+       sed -i 's/@section/@subsection/g' ../doc/$@
 
 invoke-p11tool.texi: ../src/p11tool-args.def
        @-cd ../src/ && autogen -Tagtexi-cmd.tpl $< && \
-       sed -i 's/@subsection/@subsubsection/g' $@ && \
-       sed -i 's/@section/@subsection/g' $@ && \
-       mv -f ../src/$@ ../doc
+       rm -f ../doc/$@ && \
+       ../doc/scripts/cleanup-autogen.pl <../src/$@ >../doc/$@ && \
+       rm -f ../src/$@ && \
+       sed -i 's/@subheading/@subsubheading/g' ../doc/$@ && \
+       sed -i 's/@section/@subsection/g' ../doc/$@
 
 info_TEXINFOS = gnutls.texi gnutls-guile.texi
 gnutls_TEXINFOS = gnutls.texi fdl-1.3.texi                             \
index 74c556e1c5bb64be9884b69f7c167e3c34a1c8e2..9d98de5e4b2811b3cac23ba4e6a58640336e77d2 100644 (file)
@@ -49,7 +49,7 @@ Documentation License''.
 @subtitle Transport Layer Security Library for the GNU system
 @subtitle for version @value{VERSION}, @value{UPDATED}
 @sp 7
-@image{gnutls-logo,6cm,6cm}
+@center @image{gnutls-logo,6cm,6cm}
 @author Nikos Mavrogiannopoulos
 @author Simon Josefsson (@email{bug-gnutls@@gnu.org})
 @page
@@ -160,13 +160,13 @@ Documentation License''.
 * Internal architecture of GnuTLS::
 * Support::
 * Error codes::
-* API reference::
 * Supported ciphersuites::
+* API reference::
 * Copying Information::
-* Concept Index::
+* Bibliography::
 * Function and Data Index::
+* Concept Index::
 @c * @mybibnode{}::
-* Bibliography::
 @end menu
 
 @include cha-preface.texi
@@ -195,10 +195,10 @@ Documentation License''.
 
 @include cha-errors.texi
 
-@include cha-functions.texi
-
 @include cha-ciphersuites.texi
 
+@include cha-functions.texi
+
 @include cha-copying.texi
 
 @include cha-bib.texi
diff --git a/doc/scripts/cleanup-autogen.pl b/doc/scripts/cleanup-autogen.pl
new file mode 100755 (executable)
index 0000000..7d2d43a
--- /dev/null
@@ -0,0 +1,53 @@
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+  & eval 'exec perl -wS "$0" $argv:q'
+    if 0;
+
+# Copyright (C) 2012 Free Software Foundation, Inc.
+#
+# This file is part of GnuTLS.
+#
+# This file 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 of the License, or
+# (at your option) any later version.
+#
+# This file 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 this file; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+my $line;
+my $init = 0;
+my $menu = 0;
+
+while ($line = <>) {
+  if ($line =~ /\@node/) {
+    if ($init == 0) {
+      $init = 1;
+    } else {
+      next;
+    }
+  }
+
+  if ($line =~ /\@menu/) {
+    $menu = 1;
+    next;
+  }
+
+  if ($line =~ /\@end menu/) {
+    $menu = 0;
+    next;
+  }
+
+  next if ($menu != 0);
+
+  if ($line =~ /\@subsection\s(.*)/) {
+    $line = "\@subheading $1\n";
+  }
+
+  print $line;
+}