From cf940ed7927a53de700e6323f46ff1dabf53fd2e Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Thu, 23 Oct 2014 08:16:10 -0400 Subject: [PATCH] Create `scons docs` This will build the documentation for the current release of Ocarina. Signed-off-by: Anna Schumaker --- Doxyfile | 2 +- Sconstruct | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Doxyfile b/Doxyfile index b8dee93c..069b6f8f 100644 --- a/Doxyfile +++ b/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = "Ocarina" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 6.1.3 +PROJECT_NUMBER = $(OCARINA_VERSION) # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/Sconstruct b/Sconstruct index c5739d64..816eefa7 100644 --- a/Sconstruct +++ b/Sconstruct @@ -59,13 +59,16 @@ Clean(ocarina, "bin/") def ocarina_release(target, source, env): o_vers = "ocarina-%s" % CONFIG_VERSION - os.popen("git archive --prefix=%s/ -o %s.tar.gz HEAD" % (o_vers, o_vers)) print os.popen("sha1sum %s.tar.gz" % o_vers).read() - Command("release", None, ocarina_release) +docs = Command("docs", [], "OCARINA_VERSION=%s doxygen" % CONFIG_VERSION) +Clean(docs, "html/") +Clean(docs, "latex/") + + env.Install("/usr/bin", "bin/ocarina") env.Install("/usr/share", "share/ocarina/") env.Install("/usr/share/applications", "share/applications/ocarina.desktop")