Changeset fbc0057fb3166fdbdec17c4476208f45d6f86246
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5a5b69e
|
rfbc0057
|
|
| 7 | 7 | |
| 8 | 8 | /TAGS |
| | 9 | /GPATH |
| | 10 | /GRTAGS |
| | 11 | /GSYMS |
| | 12 | /GTAGS |
| 9 | 13 | /.waf-* |
| 10 | 14 | /.lock-wscript |
-
|
r49cd073
|
rfbc0057
|
|
| 434 | 434 | Utils.pprint('CYAN', "doxygen documentation already built.") |
| 435 | 435 | |
| 436 | | def etags(ctx): |
| 437 | | '''build TAGS file using etags''' |
| | 436 | def get_tags_dirs(): |
| 438 | 437 | source_root = os.path.relpath(os.path.dirname(Utils.g_module.root_path)) |
| 439 | 438 | paths = source_root |
| … |
… |
|
| 447 | 446 | paths += " " + os.path.join(source_root, "lash_compat", "liblash") |
| 448 | 447 | 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 | |
| | 450 | def 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 | |
| | 456 | def etags(ctx): |
| | 457 | '''build TAGS file using etags''' |
| | 458 | cmd = "find %s -mindepth 1 -maxdepth 1 -name '*.[ch]' -print | etags -" % get_tags_dirs() |
| 451 | 459 | #print("Running: %s" % cmd) |
| 452 | 460 | os.system(cmd) |