Skip to content

Commit

Permalink
wscript: adopt to waf-2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bokovoy <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
abbra authored and abartlet committed Sep 5, 2018
1 parent 175be93 commit 2e401d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def configure(conf):

def etags(ctx):
'''build TAGS file using etags'''
import Utils
from waflib import Utils
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)
print("Running: %s" % cmd)
Expand All @@ -342,7 +342,7 @@ def etags(ctx):

def ctags(ctx):
"build 'tags' file using ctags"
import Utils
from waflib import Utils
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)
print("Running: %s" % cmd)
Expand Down

0 comments on commit 2e401d2

Please sign in to comment.