From 8663d3ea10caecaceee14f9566e6a17cb382d33e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Aug 2014 21:36:59 +0000 Subject: Upload man pages with waf upload_docs target. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5433 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 88ff86c..c3708b0 100644 --- a/wscript +++ b/wscript @@ -149,5 +149,13 @@ def build(bld): # Man pages bld.install_files('${MANDIR}/man1', bld.path.ant_glob('doc/*.1')) +def upload_docs(ctx): + import glob + import os + for page in glob.glob('doc/*.[1-8]'): + os.system('mkdir -p build/doc') + os.system('soelim %s | pre-grohtml troff -man -wall -Thtml | post-grohtml > build/%s.html' % (page, page)) + os.system('rsync -avz --delete -e ssh build/%s.html drobilla@drobilla.net:~/drobilla.net/man/' % page) + def lint(ctx): subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include,-runtime/sizeof src/* jalv/*', shell=True) -- cgit v1.2.1