README 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. miscellaneous scripts, useful tools
  2. -----------------------------------
  3. Miscellaneous
  4. =============
  5. get_LiNox.py : process log files to print the total Lightning NOx production.
  6. redgrid_series.py : return the possible combinations of reduced grid according
  7. to model resolution.
  8. Find/Search/Replace utilities
  9. =============================
  10. find_long_lines.rb : find all lines in the fortran code that are longer than
  11. 132 characters (official fortran standard).
  12. find_cpp : Find all the C pre-processor flags used in the current
  13. TM5 base, projects and branches. Does not look into
  14. ".svn", "TM", and "release" (since they are frozen)
  15. directories.
  16. tm5_etags : Run e/ctags (gnuctags) on selected set of TM5 directories, to
  17. create a tag table file.
  18. Useful for "Emacs", "vi" and "less".
  19. tm5_etags -o TAGFILE -r RCFILE
  20. get_tmflist : Print list of files used in a TM5 project, as defined by an RC
  21. file.
  22. get_tmflist pycasso-tm5.rc # print the list
  23. ff=$(get_tmflist pycasso-tm5.rc) # store the list in variable $ff
  24. (1) Can be use to search file:
  25. find $ff -name PATTERN
  26. (2) Can be used to search inside source code:
  27. egrep [grep-options] SEARCH-PATTERN $ff
  28. Followings are too slow for repetitive calls
  29. ============================================
  30. fsrc : Find SouRCe. Find file(s) in a TM5 project, as defined by an RC file.
  31. fsrc [-r rcfile] PATTERN
  32. gsrc : Grep SouRCe. Grep files, but only those in a project define by a
  33. TM5 rc file (hardcoded). All options of egrep can be passed, eg:
  34. gsrc -li REGEXP