1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

samba-tool: Replace C version of samba-tool with python version

C version of samba-tool is now called samba-tool-c, which will be
removed as soon as all the samba-tool commands are ported to python.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
Amitay Isaacs
2011-07-21 09:48:30 +10:00
committed by Andrew Tridgell
parent 35747fe6f0
commit 02667cbe26
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
bld.SAMBA_BINARY('samba-tool',
bld.SAMBA_BINARY('samba-tool-c',
source='samba_tool.c vampire.c gpo.c',
autoproto='proto.h',
deps='samba-hostconfig samba-util samba-net popt POPT_SAMBA POPT_CREDENTIALS samba-policy auth4',

View File

@ -18,10 +18,9 @@
#
import sys
from os.path import dirname
samba_pymodule_dir = dirname(dirname(sys.argv[0]))
sys.path.append(samba_pymodule_dir)
# Find right direction when running from source tree
sys.path.insert(0, "bin/python")
from samba import netcmd
from samba.netcmd import Command, CommandError, Option

View File

@ -3,3 +3,4 @@
bld.SAMBA_SCRIPT('samba_dnsupdate', pattern='samba_dnsupdate', installdir='.')
bld.SAMBA_SCRIPT('samba_spnupdate', pattern='samba_spnupdate', installdir='.')
bld.SAMBA_SCRIPT('upgradeprovision', pattern='upgradeprovision', installdir='.')
bld.SAMBA_SCRIPT('samba-tool', pattern='samba-tool', installdir='.')

View File

@ -2,7 +2,7 @@
from samba_utils import MODE_755
bld.INSTALL_FILES('${SBINDIR}','bin/upgradeprovision bin/samba_dnsupdate bin/samba_spnupdate',
bld.INSTALL_FILES('${SBINDIR}','bin/upgradeprovision bin/samba_dnsupdate bin/samba_spnupdate bin/samba-tool',
chmod=MODE_755, python_fixup=True, flat=True)
bld.RECURSE('bin')