mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
wscript: adopt to waf-2.0
Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
175be9377e
commit
2e401d2475
4
wscript
4
wscript
@ -332,7 +332,7 @@ def configure(conf):
|
|||||||
|
|
||||||
def etags(ctx):
|
def etags(ctx):
|
||||||
'''build TAGS file using etags'''
|
'''build TAGS file using etags'''
|
||||||
import Utils
|
from waflib import Utils
|
||||||
source_root = os.path.dirname(Utils.g_module.root_path)
|
source_root = os.path.dirname(Utils.g_module.root_path)
|
||||||
cmd = 'rm -f %s/TAGS && (find %s -name "*.[ch]" | egrep -v \.inst\. | xargs -n 100 etags -a)' % (source_root, source_root)
|
cmd = 'rm -f %s/TAGS && (find %s -name "*.[ch]" | egrep -v \.inst\. | xargs -n 100 etags -a)' % (source_root, source_root)
|
||||||
print("Running: %s" % cmd)
|
print("Running: %s" % cmd)
|
||||||
@ -342,7 +342,7 @@ def etags(ctx):
|
|||||||
|
|
||||||
def ctags(ctx):
|
def ctags(ctx):
|
||||||
"build 'tags' file using ctags"
|
"build 'tags' file using ctags"
|
||||||
import Utils
|
from waflib import Utils
|
||||||
source_root = os.path.dirname(Utils.g_module.root_path)
|
source_root = os.path.dirname(Utils.g_module.root_path)
|
||||||
cmd = 'ctags --python-kinds=-i $(find %s -name "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.) $(find %s -name "*.py")' % (source_root, source_root)
|
cmd = 'ctags --python-kinds=-i $(find %s -name "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.) $(find %s -name "*.py")' % (source_root, source_root)
|
||||||
print("Running: %s" % cmd)
|
print("Running: %s" % cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user