[Pkg-asciidoc-commits] r90 - trunk/debian/patches
Alexander Wirt
formorer at alioth.debian.org
Sun Nov 28 13:10:39 UTC 2010
Author: formorer
Date: 2010-11-28 13:10:37 +0000 (Sun, 28 Nov 2010)
New Revision: 90
Added:
trunk/debian/patches/fix_asciidoc_api_doc.dpatch
Modified:
trunk/debian/patches/00list
Log:
Readd api doc patches
Modified: trunk/debian/patches/00list
===================================================================
--- trunk/debian/patches/00list 2010-11-28 13:05:53 UTC (rev 89)
+++ trunk/debian/patches/00list 2010-11-28 13:10:37 UTC (rev 90)
@@ -4,3 +4,4 @@
testasciidoc_path.dpatch
testasciidoc_usage.dpatch
enhance_asciidoc_manpage.dpatch
+fix_asciidoc_api_doc.dpatch
Added: trunk/debian/patches/fix_asciidoc_api_doc.dpatch
===================================================================
--- trunk/debian/patches/fix_asciidoc_api_doc.dpatch (rev 0)
+++ trunk/debian/patches/fix_asciidoc_api_doc.dpatch 2010-11-28 13:10:37 UTC (rev 90)
@@ -0,0 +1,109 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix_asciidoc_api_doc.dpatch by Alexander Wirt <formorer at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' asciidoc-8.6.3~/asciidocapi.py asciidoc-8.6.3/asciidocapi.py
+--- asciidoc-8.6.3~/asciidocapi.py 2010-02-06 04:19:59.000000000 +0100
++++ asciidoc-8.6.3/asciidocapi.py 2010-11-28 14:09:07.002140339 +0100
+@@ -5,6 +5,8 @@
+ The AsciiDocAPI class provides an API for executing asciidoc. Minimal example
+ compiles `mydoc.txt` to `mydoc.html`:
+
++ import sys
++ sys.path.append("/usr/share/asciidoc")
+ import asciidocapi
+ asciidoc = asciidocapi.AsciiDocAPI()
+ asciidoc.execute('mydoc.txt')
+@@ -17,6 +19,8 @@
+ 1. Check execution:
+
+ >>> import StringIO
++ >>> import sys
++ >>> sys.path.append("/usr/share/asciidoc")
+ >>> infile = StringIO.StringIO('Hello *{author}*')
+ >>> outfile = StringIO.StringIO()
+ >>> asciidoc = AsciiDocAPI()
+@@ -36,6 +40,8 @@
+ 2. Check error handling:
+
+ >>> import StringIO
++ >>> import sys
++ >>> sys.path.append("/usr/share/asciidoc")
+ >>> asciidoc = AsciiDocAPI()
+ >>> infile = StringIO.StringIO('---------')
+ >>> outfile = StringIO.StringIO()
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' asciidoc-8.6.3~/doc/asciidocapi.txt asciidoc-8.6.3/doc/asciidocapi.txt
+--- asciidoc-8.6.3~/doc/asciidocapi.txt 2009-05-26 01:37:47.000000000 +0200
++++ asciidoc-8.6.3/doc/asciidocapi.txt 2010-11-28 14:10:00.369795845 +0100
+@@ -44,6 +44,8 @@
+
+ [source,python]
+ -------------------------------------------------------------------------------
++import sys
++sys.path.append("/usr/share/asciidoc")
+ from asciidocapi import AsciiDocAPI
+ asciidoc = AsciiDocAPI()
+ asciidoc.execute('mydoc.txt')
+@@ -57,6 +59,8 @@
+ [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
+ Type "help", "copyright", "credits" or "license" for more information.
+ >>> from asciidocapi import AsciiDocAPI
++>>> import sys
++>>> sys.path.append("/usr/share/asciidoc")
+ >>> import StringIO
+ >>> infile = StringIO.StringIO('Hello *{author}*')
+ >>> outfile = StringIO.StringIO()
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' asciidoc-8.6.3~/examples/website/asciidocapi.txt asciidoc-8.6.3/examples/website/asciidocapi.txt
+--- asciidoc-8.6.3~/examples/website/asciidocapi.txt 2009-05-26 01:37:47.000000000 +0200
++++ asciidoc-8.6.3/examples/website/asciidocapi.txt 2010-11-28 14:10:00.369795845 +0100
+@@ -44,6 +44,8 @@
+
+ [source,python]
+ -------------------------------------------------------------------------------
++import sys
++sys.path.append("/usr/share/asciidoc")
+ from asciidocapi import AsciiDocAPI
+ asciidoc = AsciiDocAPI()
+ asciidoc.execute('mydoc.txt')
+@@ -57,6 +59,8 @@
+ [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
+ Type "help", "copyright", "credits" or "license" for more information.
+ >>> from asciidocapi import AsciiDocAPI
++>>> import sys
++>>> sys.path.append("/usr/share/asciidoc")
+ >>> import StringIO
+ >>> infile = StringIO.StringIO('Hello *{author}*')
+ >>> outfile = StringIO.StringIO()
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' asciidoc-8.6.3~/tests/asciidocapi.py asciidoc-8.6.3/tests/asciidocapi.py
+--- asciidoc-8.6.3~/tests/asciidocapi.py 2010-02-06 04:19:59.000000000 +0100
++++ asciidoc-8.6.3/tests/asciidocapi.py 2010-11-28 14:09:07.002140339 +0100
+@@ -5,6 +5,8 @@
+ The AsciiDocAPI class provides an API for executing asciidoc. Minimal example
+ compiles `mydoc.txt` to `mydoc.html`:
+
++ import sys
++ sys.path.append("/usr/share/asciidoc")
+ import asciidocapi
+ asciidoc = asciidocapi.AsciiDocAPI()
+ asciidoc.execute('mydoc.txt')
+@@ -17,6 +19,8 @@
+ 1. Check execution:
+
+ >>> import StringIO
++ >>> import sys
++ >>> sys.path.append("/usr/share/asciidoc")
+ >>> infile = StringIO.StringIO('Hello *{author}*')
+ >>> outfile = StringIO.StringIO()
+ >>> asciidoc = AsciiDocAPI()
+@@ -36,6 +40,8 @@
+ 2. Check error handling:
+
+ >>> import StringIO
++ >>> import sys
++ >>> sys.path.append("/usr/share/asciidoc")
+ >>> asciidoc = AsciiDocAPI()
+ >>> infile = StringIO.StringIO('---------')
+ >>> outfile = StringIO.StringIO()
Property changes on: trunk/debian/patches/fix_asciidoc_api_doc.dpatch
___________________________________________________________________
Added: svn:executable
+ *
More information about the Pkg-asciidoc-commits
mailing list