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:
parent
c19985fc7e
commit
cf940ed792
2
Doxyfile
2
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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue