waf: etags command

This commit is contained in:
Nedko Arnaudov 2010-05-11 23:20:12 +03:00
parent b44260b955
commit 49cd073a43
1 changed files with 19 additions and 0 deletions

19
wscript
View File

@ -433,6 +433,25 @@ def build(bld):
else:
Utils.pprint('CYAN', "doxygen documentation already built.")
def etags(ctx):
'''build TAGS file using etags'''
source_root = os.path.relpath(os.path.dirname(Utils.g_module.root_path))
paths = source_root
paths += " " + os.path.join(source_root, "common")
paths += " " + os.path.join(source_root, "dbus")
paths += " " + os.path.join(source_root, "proxies")
paths += " " + os.path.join(source_root, "daemon")
paths += " " + os.path.join(source_root, "gui")
paths += " " + os.path.join(source_root, "example-apps")
paths += " " + os.path.join(source_root, "lib")
paths += " " + os.path.join(source_root, "lash_compat", "liblash")
paths += " " + os.path.join(source_root, "lash_compat", "liblash", "lash")
cmd = "find %s -mindepth 1 -maxdepth 1 -name '*.[ch]' -print | etags -" % paths
#print("Running: %s" % cmd)
os.system(cmd)
os.system("stat -c '%y' TAGS")
def dist_hook():
shutil.copy('../build/default/version.h', "./")