1 |
#!/usr/bin/python |
---|
2 |
# |
---|
3 |
# Copyright (C) 2007-2008 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 |
e = env.Clone() |
---|
30 |
|
---|
31 |
# |
---|
32 |
# For the the ffado-diag tools |
---|
33 |
e['PYTHONDIR'] = Template( os.path.join( e['SHAREDIR'], 'python' ) ).safe_substitute( e ) |
---|
34 |
# For the installation of the stuff |
---|
35 |
e['pythondir'] = Template( os.path.join( e['sharedir'], 'python' ) ).safe_substitute( e ) |
---|
36 |
|
---|
37 |
e.Command( "static_info.txt", "#/SConstruct", "python support/tools/ffado-diag-static > $TARGET" ) |
---|
38 |
|
---|
39 |
e.ScanReplace( "ffado-diag.in" ) |
---|
40 |
|
---|
41 |
e.Install( "$bindir", "ffado-diag" ) |
---|
42 |
e.Install( "$pythondir", "helpstrings.py" ) |
---|
43 |
e.Install( "$pythondir", "listirqinfo.py" ) |
---|
44 |
e.Install( "$pythondir", "static_info.txt" ) |
---|
45 |
e.Install( "$pythondir", "ffado_diag_helpers.py" ) |
---|
46 |
|
---|
47 |
# Install manpages in section 1 |
---|
48 |
dest = os.path.join("$mandir", "man1", "ffado-diag.1") |
---|
49 |
env.InstallAs(source="ffado-diag.1", target=dest) |
---|