[kupfer] wscript: Build man page in main wscript file
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] wscript: Build man page in main wscript file
- Date: Tue, 6 Oct 2009 14:59:24 +0000 (UTC)
commit fea1609e9a73d061108d9f2d9b137e315ed6248e
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Oct 5 17:16:08 2009 +0200
wscript: Build man page in main wscript file
Documentation/wscript_build | 16 ----------------
wscript | 18 +++++++++++++++++-
2 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/wscript b/wscript
index db7592d..1bd8449 100644
--- a/wscript
+++ b/wscript
@@ -167,8 +167,24 @@ def build(bld):
chmod = 0755,
dict = {"PYTHON": bld.env["PYTHON"]}
)
+ # Documentation
+ if bld.env["RST2MAN"]:
+ # generate man page from Quickstart.rst
+ bld.new_task_gen(
+ source = "Documentation/Quickstart.rst",
+ target = "kupfer.1",
+ rule = 'rst2man ${SRC} > ${TGT}',
+ )
+ bld.add_group()
+ # compress and install man page
+ bld.new_task_gen(
+ source = "kupfer.1",
+ target = "kupfer.1.gz",
+ rule = 'gzip -c ${SRC} > ${TGT}',
+ install_path = "${MANDIR}/man1",
+ )
- bld.add_subdirs("po data Documentation extras")
+ bld.add_subdirs("po data extras")
def intlupdate(util):
"""Extract new strings for localization"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]