root/trunk/libffado/support/mixer-qt4/SConscript

Revision 2803, 2.0 kB (checked in by jwoithe, 3 years ago)

Cosmetic: capitalise "L" in "Linux".

"Linux" is a proper noun so it should start with a capital letter. These
changes are almost all within comments.

This patch was originally proposed by pander on the ffado-devel mailing
list. It has been expanded to cover all similar cases to maintain
consistency throughout the source tree.

Line 
1 #!/usr/bin/python
2 #
3 # Copyright (C) 2007-2009 Arnold Krille
4 # Copyright (C) 2007-2008 Pieter Palmers
5 #
6 # This file is part of FFADO
7 # FFADO = Free FireWire (pro-)audio drivers for Linux
8 #
9 # FFADO is based upon FreeBoB.
10 #
11 # This program is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 2 of the License, or
14 # (at your option) version 3 of the License.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 #
24 import os
25 from string import Template
26
27 Import( 'env' )
28
29 if env['BUILD_MIXER'] == 'true':
30     e = env.Clone()
31
32     pythonfiles = [ 'ffado/config.py' ]
33     for root, dirs, files in os.walk( "ffado" ):
34         for name in files:
35             if name.endswith( '.pyc' ) or '.in' in name or name.startswith("."):
36                 continue
37             pythonfiles.append( os.path.join( root, name ) )
38
39     e.ScanReplace( "ffado/config.py.in" )
40     e.Depends( "ffado/config.py", "#/SConstruct" )
41     for file in pythonfiles:
42         e.InstallAs( os.path.join(e['pypkgdir'], file), file )
43
44     e.ScanReplace( "ffado-mixer.in" )
45     e.Depends( "ffado-mixer", "SConscript" )
46     e.Depends( "ffado-mixer", "#/SConstruct" )
47     e.Install( "$bindir", "ffado-mixer" )
48
49     e.ScanReplace( "ffado-mixer-profiler.in" )
50     e.Depends( "ffado-mixer-profiler", "SConscript" )
51     e.Depends( "ffado-mixer-profiler", "#/SConstruct" )
52
53     e.Install( "$sharedir/icons", "../xdg/hi64-apps-ffado.png" )
54
55     # Install the ffado-mixer manpage in section 1
56     dest = os.path.join("$mandir", "man1", "ffado-mixer.1")
57     env.InstallAs(source="ffado-mixer.1", target=dest)
58
59 # vim: et
Note: See TracBrowser for help on using the browser.