1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/script/wscript_build
Andreas Schneider 6ef0a64162 s3-script: Install the findsmb script
When we transitioned from autotools to waf we dropped installing the
findsmb script. However we create and install the manpage for it so
install it in the system again.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jun  9 19:10:15 CEST 2016 on sn-devel-144
2016-06-09 19:10:15 +02:00

26 lines
845 B
Python

#!/usr/bin/env python
from samba_utils import MODE_755
bld.INSTALL_FILES('${BINDIR}',
'smbtar',
chmod=MODE_755, flat=True)
# Callout scripts for use in selftest environment
bld.SAMBA_SCRIPT('smbaddshare', pattern='smbaddshare', installdir='.')
bld.SAMBA_SCRIPT('smbchangeshare', pattern='smbchangeshare', installdir='.')
bld.SAMBA_SCRIPT('smbdeleteshare', pattern='smbdeleteshare', installdir='.')
sed_expr1 = 's#@PERL@#/usr/bin/env perl#'
sed_expr2 = 's#@BINDIR@#${BINDIR}#'
bld.SAMBA_GENERATOR('findsmb-script',
source='findsmb.in',
target='findsmb',
rule='sed -e "%s" -e "%s" ${SRC} > ${TGT}' % (sed_expr1, sed_expr2))
bld.INSTALL_FILES('${BINDIR}',
'findsmb',
destname='findsmb',
chmod=0755)