Changeset e3b77e8 for wscript


Ignore:
Timestamp:
Jan 3, 2017, 5:38:27 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, sampler, yinfft+
Children:
9681849
Parents:
a6ba5d9f
Message:

wscript: add version to sphinx and manpages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    ra6ba5d9f re3b77e8  
    412412        if 'MANDIR' not in bld.env:
    413413            bld.env['MANDIR'] = bld.env['DATAROOTDIR'] + '/man'
     414        bld.env.VERSION = VERSION
    414415        rule_str = '${TXT2MAN} -t `basename ${TGT} | cut -f 1 -d . | tr a-z A-Z`'
    415416        rule_str += ' -r ${PACKAGE}\\ ${VERSION} -P ${PACKAGE}'
     
    441442    # note: build in ../doc/_build/html, otherwise waf wont install unsigned files
    442443    if bld.env['SPHINX']:
     444        bld.env.VERSION = VERSION
    443445        bld( name = 'sphinx',
    444                 rule = '${SPHINX} -b html -a -q `dirname ${SRC}` `dirname ${TGT}`',
     446                rule = '${SPHINX} -b html -D release=${VERSION} -D version=${VERSION} -a -q `dirname ${SRC}` `dirname ${TGT}`',
    445447                source = 'doc/conf.py',
    446448                target = '../doc/_build/html/index.html')
Note: See TracChangeset for help on using the changeset viewer.