Changeset 2089

Show
Ignore:
Timestamp:
03/27/12 07:06:15 (9 years ago)
Author:
jwoithe
Message:

Provide manpages for commonly used FFADO programs. Closes #294.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r2080 r2089  
    4949    PathVariable( "INCLUDEDIR", "Overwrite the directory where headers are installed to.", "$PREFIX/include", PathVariable.PathAccept ), 
    5050    PathVariable( "SHAREDIR", "Overwrite the directory where misc shared files are installed to.", "$PREFIX/share/libffado", PathVariable.PathAccept ), 
     51    PathVariable( "MANDIR", "Overwrite the directory where manpages are installed", "$PREFIX/man", PathVariable.PathAccept ), 
    5152    PathVariable( "PYPKGDIR", "The directory where the python modules get installed.", 
    5253        distutils.sysconfig.get_python_lib( prefix="$PREFIX" ), PathVariable.PathAccept ), 
     
    371372env['includedir'] = Template( env.destdir + env['INCLUDEDIR'] ).safe_substitute( env ) 
    372373env['sharedir'] = Template( env.destdir + env['SHAREDIR'] ).safe_substitute( env ) 
     374env['mandir'] = Template( env.destdir + env['MANDIR'] ).safe_substitute( env ) 
    373375env['pypkgdir'] = Template( env.destdir + env['PYPKGDIR'] ).safe_substitute( env ) 
    374376env['PYPKGDIR'] = Template( env['PYPKGDIR'] ).safe_substitute( env ) 
     
    380382env.Alias( "install", env['sharedir'] ) 
    381383env.Alias( "install", env['bindir'] ) 
     384env.Alias( "install", env['mandir'] ) 
    382385if build_mixer: 
    383386    env.Alias( "install", env['pypkgdir'] ) 
  • trunk/libffado/support/dbus/SConscript

    r1951 r2089  
    6262} 
    6363 
     64manpages = ( 
     65    "ffado-dbus-server.1", 
     66) 
     67 
    6468installapps += [ "ffado-dbus-server" ] 
    6569 
     
    6872    if app.find( "test" ) == -1: 
    6973        env.Install( "$bindir", app ) 
     74 
     75for manpage in manpages: 
     76    section = manpage.split(".")[1] 
     77    dest = os.path.join("$mandir", "man"+section, manpage) 
     78    env.InstallAs(source=manpage, target=dest) 
    7079 
    7180servicefile = env.ScanReplace('org.ffado.Control.service.in') 
  • trunk/libffado/support/firmware/SConscript

    r2073 r2089  
    2121# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    2222# 
     23import os 
    2324 
    2425Import( 'env' ) 
     
    4445installapps = [] 
    4546 
     47manpages = [] 
     48 
    4649env.PrependUnique( LIBPATH=env['build_base']+"src" ) 
    4750env.PrependUnique( LIBS="ffado" ) 
     
    5053    apps["ffado-bridgeco-downloader"] = "downloader.cpp bridgeco-downloader.cpp" 
    5154    installapps += [ "ffado-bridgeco-downloader" ] 
     55    manpages += [ "ffado-bridgeco-downloader.1" ] 
    5256 
    5357if env['ENABLE_FIREWORKS']: 
    5458    apps["ffado-fireworks-downloader"] = "downloader.cpp fireworks-downloader.cpp" 
    5559    installapps += [ "ffado-fireworks-downloader" ] 
     60    manpages += [ "ffado-fireworks-downloader.1" ] 
     61 
    5662if env['ENABLE_DICE']: 
    5763    apps["ffado-dice-firmware"] = "dice-firmware-utility.cpp" 
    5864    installapps += [ "ffado-dice-firmware" ] 
     65    manpages += [ "ffado-dice-firmware.1" ] 
    5966 
    6067 
     
    6471        env.Install( "$bindir", app ) 
    6572 
     73for manpage in manpages: 
     74    section = manpage.split(".")[1] 
     75    dest = os.path.join("$mandir", "man"+section, manpage) 
     76    env.InstallAs(source=manpage, target=dest) 
     77 
     78 
    6679# static versions 
    6780if static_env['BUILD_STATIC_TOOLS']: 
  • trunk/libffado/support/mixer-qt4/SConscript

    r1748 r2089  
    5757    e.Install( "$sharedir/icons", "../xdg/hi64-apps-ffado.png" ) 
    5858 
     59    # Install the ffado-mixer manpage in section 1 
     60    dest = os.path.join("$mandir", "man1", "ffado-mixer.1") 
     61    env.InstallAs(source="ffado-mixer.1", target=dest) 
     62 
    5963# vim: et 
  • trunk/libffado/support/tools/SConscript

    r1663 r2089  
    4444e.Install( "$pythondir", "static_info.txt" ) 
    4545e.Install( "$pythondir", "ffado_diag_helpers.py" ) 
     46 
     47# Install manpages in section 1 
     48dest = os.path.join("$mandir", "man1", "ffado-diag.1") 
     49env.InstallAs(source="ffado-diag.1", target=dest)