source3/wscript: update to handle waf 2.0.4
[vlendec/samba-autobuild/.git] / source3 / script / wscript_build
index fc59a65687cb871c90c740a6a9c72e44f4eed94a..40ecdd7ef50f3304e3ca7fed8eed9879abb3d162 100644 (file)
@@ -5,3 +5,21 @@ 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=MODE_755)