Create `scons docs`

This will build the documentation for the current release of Ocarina.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2014-10-23 08:16:10 -04:00
parent c19985fc7e
commit cf940ed792
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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")