s4: don't run etags over .inst files
authorAndrew Tridgell <tridge@samba.org>
Thu, 4 Nov 2010 22:01:47 +0000 (09:01 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 4 Nov 2010 22:51:06 +0000 (22:51 +0000)
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov  4 22:51:06 UTC 2010 on sn-devel-104

source4/wscript

index ac4971ca6a4edf463812b1a907b7165ed512d7b1..fad9c3451f933d7dfe5c3bc2470da96b390172a6 100644 (file)
@@ -134,7 +134,7 @@ def etags(ctx):
     '''build TAGS file using etags'''
     import Utils
     source_root = os.path.dirname(Utils.g_module.root_path)
-    cmd = 'etags $(find %s/.. -name "*.[ch]")' % source_root
+    cmd = 'etags $(find %s/.. -name "*.[ch]" | egrep -v \.inst\.)' % source_root
     print("Running: %s" % cmd)
     os.system(cmd)
 
@@ -142,7 +142,7 @@ def ctags(ctx):
     "build 'tags' file using ctags"
     import Utils
     source_root = os.path.dirname(Utils.g_module.root_path)
-    cmd = 'ctags $(find %s/.. -name "*.[ch]" | grep -v "*_proto\.h")' % source_root
+    cmd = 'ctags $(find %s/.. -name "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.)' % source_root
     print("Running: %s" % cmd)
     os.system(cmd)