Changeset 403e9dd


Ignore:
Timestamp:
Dec 8, 2013, 4:10:40 AM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
8122e54a
Parents:
49e40cc
Message:

doc/: rewrite manpages, use txt2man, add aubioquiet.txt, change rule in wscript

Files:
7 added
6 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r49e40cc r403e9dd  
    213213  ctx.define('PACKAGE', APPNAME)
    214214
    215   # check if docbook-to-man is installed, optional
     215  # check if txt2man is installed, optional
    216216  try:
    217     ctx.find_program('docbook-to-man', var='DOCBOOKTOMAN')
     217    ctx.find_program('txt2man', var='TXT2MAN')
    218218  except ctx.errors.ConfigurationError:
    219     ctx.to_log('docbook-to-man was not found (ignoring)')
     219    ctx.to_log('txt2man was not found (ignoring)')
    220220
    221221def build(bld):
     
    234234
    235235    # build manpages from sgml files
    236     if bld.env['DOCBOOKTOMAN']:
     236    if bld.env['TXT2MAN']:
    237237        from waflib import TaskGen
    238238        if 'MANDIR' not in bld.env:
    239239            bld.env['MANDIR'] = bld.env['PREFIX'] + '/share/man'
     240        rule_str = '${TXT2MAN} -t `basename ${TGT} | cut -f 1 -d . | tr a-z A-Z`'
     241        rule_str += ' -r ${PACKAGE}\\ ${VERSION} -P ${PACKAGE}'
     242        rule_str += ' -v ${PACKAGE}\\ User\\\'s\\ manual'
     243        rule_str += ' -s 1 ${SRC} > ${TGT}'
    240244        TaskGen.declare_chain(
    241                 name      = 'docbooktoman',
    242                 rule      = '${DOCBOOKTOMAN} ${SRC} > ${TGT}',
    243                 ext_in    = '.sgml',
     245                name      = 'txt2man',
     246                rule      = rule_str,
     247                #rule      = '${TXT2MAN} -p -P aubio -s 1 -r aubio-0.4.0 ${SRC} > ${TGT}',
     248                ext_in    = '.txt',
    244249                ext_out   = '.1',
    245250                reentrant = False,
    246251                install_path =  '${MANDIR}/man1',
    247252                )
    248         bld( source = bld.path.ant_glob('doc/*.sgml') )
     253        bld( source = bld.path.ant_glob('doc/*.txt') )
    249254
    250255    """
Note: See TracChangeset for help on using the changeset viewer.