X-Git-Url: http://git.samba.org/?p=samba.git;a=blobdiff_plain;f=source3%2Fscript%2Fwscript_build;fp=source3%2Fscript%2Fwscript_build;h=25591ea762165ae15bc8fca060dff7d7930212b6;hp=56c904fe349fea81a2d9210b1d9e2e313f5ce365;hb=6ef0a6416228dc37f24d7554b386d6ded9337c0b;hpb=0ae1bbf9b8dbbb70d7c07fdc62628a19ff319392 diff --git a/source3/script/wscript_build b/source3/script/wscript_build index 56c904fe349..25591ea7621 100644 --- a/source3/script/wscript_build +++ b/source3/script/wscript_build @@ -10,3 +10,16 @@ bld.INSTALL_FILES('${BINDIR}', 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)