summaryrefslogtreecommitdiff
path: root/source4/scripting/wscript_build
blob: 2f53cce12b7861b8f157f8ea7caa416a20f040d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python

from samba_utils import MODE_755

sbin_files = ''
if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
    sbin_files = 'bin/samba_dnsupdate bin/samba_spnupdate bin/samba_upgradedns bin/samba_kcc '
sbin_files += 'bin/samba_gpoupdate'
man_files = 'man/samba_gpoupdate.8'

if sbin_files:
    bld.INSTALL_FILES('${SBINDIR}',
                      sbin_files,
                      chmod=MODE_755, python_fixup=True, flat=True)
    if 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']:
        bld.MANPAGES(man_files, True)

if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
    bld.INSTALL_FILES('${BINDIR}',
                  'bin/samba-tool',
                  chmod=MODE_755, python_fixup=True, flat=True)

bld.RECURSE('bin')