[geany/geany] 985cd9: Add "hackingdoc" as proper action and remove non-working --hackingdoc option
Enrico Tröger
git-noreply at xxxxx
Fri Aug 29 12:13:57 UTC 2014
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Fri, 29 Aug 2014 12:13:57 UTC
Commit: 985cd9146ffae3ab6022c5127946f6f594378a2e
https://github.com/geany/geany/commit/985cd9146ffae3ab6022c5127946f6f594378a2e
Log Message:
-----------
Add "hackingdoc" as proper action and remove non-working --hackingdoc option
Modified Paths:
--------------
wscript
Modified: wscript
14 lines changed, 11 insertions(+), 3 deletions(-)
===================================================================
@@ -343,9 +343,6 @@ def options(opt):
help='documentation root', dest='docdir')
opt.add_option('--libdir', type='string', default='',
help='object code libraries', dest='libdir')
- # Actions
- opt.add_option('--hackingdoc', action='store_true', default=False,
- help='generate HTML documentation from HACKING file', dest='hackingdoc')
def build(bld):
@@ -690,6 +687,17 @@ def apidoc(ctx):
os.chdir('..')
+def hackingdoc(ctx):
+ """generate HACKING documentation"""
+ os.chdir('doc')
+ Logs.pprint('CYAN', 'Generating HACKING documentation')
+ cmd = _find_rst2html(ctx)
+ ret = ctx.exec_command('%s -stg --stylesheet=geany.css %s %s' % (cmd, '../HACKING', 'hacking.html'))
+ if ret != 0:
+ raise WafError('Generating HACKING documentation failed')
+ os.chdir('..')
+
+
def _find_program(ctx, cmd, **kw):
def noop(*args):
pass
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list