[Pkg-asciidoc-commits] r81 - in trunk/debian: . patches

Alexander Wirt formorer at alioth.debian.org
Sun Nov 28 12:31:24 UTC 2010


Author: formorer
Date: 2010-11-28 12:31:23 +0000 (Sun, 28 Nov 2010)
New Revision: 81

Added:
   trunk/debian/patches/fix_asciidoc_api_docs.dpatch
Modified:
   trunk/debian/README.Debian
   trunk/debian/patches/00list
Log:
Fix asciidoc api docs 


Modified: trunk/debian/README.Debian
===================================================================
--- trunk/debian/README.Debian	2010-11-28 12:29:47 UTC (rev 80)
+++ trunk/debian/README.Debian	2010-11-28 12:31:23 UTC (rev 81)
@@ -3,6 +3,7 @@
 
 - To enable syntax highlighting for asciidoc just execute 'vim-addons install asciidoc'
 
+- If you want to use the asciidoc api don't forget to add '/usr/share/asciidoc' to your sys.path
 - To get the images from asciidoc to show up (css backend) make a symlink called
   "images" from "/usr/share/asciidoc/images"
 

Modified: trunk/debian/patches/00list
===================================================================
--- trunk/debian/patches/00list	2010-11-28 12:29:47 UTC (rev 80)
+++ trunk/debian/patches/00list	2010-11-28 12:31:23 UTC (rev 81)
@@ -3,3 +3,4 @@
 normpath-not-realpath.dpatch
 testasciidoc_path.dpatch
 testasciidoc_usage.dpatch
+fix_asciidoc_api_docs.dpatch

Added: trunk/debian/patches/fix_asciidoc_api_docs.dpatch
===================================================================
--- trunk/debian/patches/fix_asciidoc_api_docs.dpatch	                        (rev 0)
+++ trunk/debian/patches/fix_asciidoc_api_docs.dpatch	2010-11-28 12:31:23 UTC (rev 81)
@@ -0,0 +1,49 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix_asciidoc_api_docs.dpatch by Alexander Wirt <formorer at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Expand the examples to import '/usr/share/asciidoc/' to sys.path
+
+ at DPATCH@
+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 13:26:01.859518856 +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')
+@@ -56,6 +58,8 @@
+ Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
+ [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
+ Type "help", "copyright", "credits" or "license" for more information.
++>>> import sys
++>>> sys.path.append("/usr/share/asciidoc/")
+ >>> from asciidocapi import AsciiDocAPI
+ >>> import StringIO
+ >>> infile = StringIO.StringIO('Hello *{author}*')
+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 13:26:01.859518856 +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')
+@@ -56,6 +58,8 @@
+ Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
+ [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
+ Type "help", "copyright", "credits" or "license" for more information.
++>>> import sys
++>>> sys.path.append("/usr/share/asciidoc/")
+ >>> from asciidocapi import AsciiDocAPI
+ >>> import StringIO
+ >>> infile = StringIO.StringIO('Hello *{author}*')


Property changes on: trunk/debian/patches/fix_asciidoc_api_docs.dpatch
___________________________________________________________________
Added: svn:executable
   + *




More information about the Pkg-asciidoc-commits mailing list