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

« back to all changes in this revision

Viewing changes to debian/patches/testasciidoc_usage.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
## testasciidoc_usage.dpatch by Alexander Wirt <formorer@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: remove .py extension for usage and tell it where the conf is
 
6
 
 
7
@DPATCH@
 
8
diff -Nur -x '*.orig' -x '*~' asciidoc-8.5.2.obsolete.0.391026079728366/tests/testasciidoc.py asciidoc-8.5.2.obsolete.0.391026079728366.new/tests/testasciidoc.py
 
9
--- asciidoc-8.5.2.obsolete.0.391026079728366/tests/testasciidoc.py     2010-01-02 11:29:22.000000000 +0100
 
10
+++ asciidoc-8.5.2.obsolete.0.391026079728366.new/tests/testasciidoc.py 2010-01-02 11:30:39.000000000 +0100
 
11
@@ -1,6 +1,6 @@
 
12
 #!/usr/bin/env python
 
13
 
 
14
-USAGE = '''Usage: testasciidoc.py [OPTIONS] COMMAND
 
15
+USAGE = '''Usage: testasciidoc [OPTIONS] COMMAND
 
16
 
 
17
 Run AsciiDoc conformance tests specified in configuration FILE.
 
18
 
 
19
@@ -12,7 +12,7 @@
 
20
 Options:
 
21
   -f, --conf-file=CONF_FILE
 
22
         Use configuration file CONF_FILE (default configuration file is
 
23
-        testasciidoc.conf in testasciidoc.py directory)
 
24
+        /etc/asciidoc/testasciidoc.conf)
 
25
   --force
 
26
         Update all test data overwriting existing data'''
 
27
 
 
28
@@ -377,7 +377,7 @@
 
29
     if len(args) == 0:
 
30
         usage()
 
31
         sys.exit(1)
 
32
-    conffile = os.path.join(os.path.dirname(sys.argv[0]), 'testasciidoc.conf')
 
33
+    conffile = '/etc/asciidoc/testasciidoc.conf'
 
34
     force = False
 
35
     for o,v in opts:
 
36
         if o == '--force':