~ubuntu-branches/ubuntu/utopic/asciidoc/utopic

« back to all changes in this revision

Viewing changes to debian/patches/fix_asciidoc_api_doc.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2010-11-27 23:19:57 UTC
  • mfrom: (1.1.12 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20101127231957-jxdmrk7z7lkcqy3l
Tags: 8.6.3-1
* New upstream version (Closes: #595324)
* Support asciidoc API (Closes: #526351)
* Depend on python >= 2.4 (Closes: #571303)
* Do not compress .txt files (Closes: #592423)
* Enhance asciidoc manpage (Closes: #499497)
* Move some of the Recommends (vim-addon-manager, source-highlight) to 
  Suggests (Closes: #564015)
* Bump standards version (No changes)
* Add README.Source file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## fix_asciidoc_api_doc.dpatch by Alexander Wirt <formorer@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: No description.
 
6
 
 
7
@DPATCH@
 
8
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
 
9
--- asciidoc-8.6.3~/asciidocapi.py      2010-02-06 04:19:59.000000000 +0100
 
10
+++ asciidoc-8.6.3/asciidocapi.py       2010-11-28 14:09:07.002140339 +0100
 
11
@@ -5,6 +5,8 @@
 
12
 The AsciiDocAPI class provides an API for executing asciidoc. Minimal example
 
13
 compiles `mydoc.txt` to `mydoc.html`:
 
14
 
 
15
+  import sys
 
16
+  sys.path.append("/usr/share/asciidoc")
 
17
   import asciidocapi
 
18
   asciidoc = asciidocapi.AsciiDocAPI()
 
19
   asciidoc.execute('mydoc.txt')
 
20
@@ -17,6 +19,8 @@
 
21
 1. Check execution:
 
22
 
 
23
    >>> import StringIO
 
24
+   >>> import sys
 
25
+   >>> sys.path.append("/usr/share/asciidoc")
 
26
    >>> infile = StringIO.StringIO('Hello *{author}*')
 
27
    >>> outfile = StringIO.StringIO()
 
28
    >>> asciidoc = AsciiDocAPI()
 
29
@@ -36,6 +40,8 @@
 
30
 2. Check error handling:
 
31
 
 
32
    >>> import StringIO
 
33
+   >>> import sys
 
34
+   >>> sys.path.append("/usr/share/asciidoc")
 
35
    >>> asciidoc = AsciiDocAPI()
 
36
    >>> infile = StringIO.StringIO('---------')
 
37
    >>> outfile = StringIO.StringIO()
 
38
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
 
39
--- asciidoc-8.6.3~/doc/asciidocapi.txt 2009-05-26 01:37:47.000000000 +0200
 
40
+++ asciidoc-8.6.3/doc/asciidocapi.txt  2010-11-28 14:10:00.369795845 +0100
 
41
@@ -44,6 +44,8 @@
 
42
 
 
43
 [source,python]
 
44
 -------------------------------------------------------------------------------
 
45
+import sys
 
46
+sys.path.append("/usr/share/asciidoc")
 
47
 from asciidocapi import AsciiDocAPI
 
48
 asciidoc = AsciiDocAPI()
 
49
 asciidoc.execute('mydoc.txt')
 
50
@@ -57,6 +59,8 @@
 
51
 [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
 
52
 Type "help", "copyright", "credits" or "license" for more information.
 
53
 >>> from asciidocapi import AsciiDocAPI
 
54
+>>> import sys
 
55
+>>> sys.path.append("/usr/share/asciidoc")
 
56
 >>> import StringIO
 
57
 >>> infile = StringIO.StringIO('Hello *{author}*')
 
58
 >>> outfile = StringIO.StringIO()
 
59