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/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']: