Changeset fbc0057fb3166fdbdec17c4476208f45d6f86246

Show
Ignore:
Timestamp:
05/12/10 00:39:10 (4 months ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
046563f84041ed1634fed9d2595366a5ae927031
Parents:
49cd073a432daecc35d5dc044c19ecae7614feee
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-05-12T00:39:10Z+0300
Message:

waf: gtags command

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • .gitignore

    r5a5b69e rfbc0057  
    77 
    88/TAGS 
     9/GPATH 
     10/GRTAGS 
     11/GSYMS 
     12/GTAGS 
    913/.waf-* 
    1014/.lock-wscript 
  • wscript

    r49cd073 rfbc0057  
    434434                Utils.pprint('CYAN', "doxygen documentation already built.") 
    435435 
    436 def etags(ctx): 
    437     '''build TAGS file using etags''' 
     436def get_tags_dirs(): 
    438437    source_root = os.path.relpath(os.path.dirname(Utils.g_module.root_path)) 
    439438    paths = source_root 
     
    447446    paths += " " + os.path.join(source_root, "lash_compat", "liblash") 
    448447    paths += " " + os.path.join(source_root, "lash_compat", "liblash", "lash") 
    449  
    450     cmd = "find %s -mindepth 1 -maxdepth 1 -name '*.[ch]' -print | etags -" % paths 
     448    return paths 
     449 
     450def gtags(ctx): 
     451    '''build tag files for GNU global''' 
     452    cmd = "find %s -mindepth 1 -maxdepth 1 -name '*.[ch]' -print | gtags --statistics -f -" % get_tags_dirs() 
     453    #print("Running: %s" % cmd) 
     454    os.system(cmd) 
     455 
     456def etags(ctx): 
     457    '''build TAGS file using etags''' 
     458    cmd = "find %s -mindepth 1 -maxdepth 1 -name '*.[ch]' -print | etags -" % get_tags_dirs() 
    451459    #print("Running: %s" % cmd) 
    452460    os.system(cmd)