stronk7

Untitled

Jul 12th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Simple script to build moodle ctags (required MacPort's ctags to be installed)
  4. # Note this uses the patched ctags: https://sourceforge.net/p/ctags/patches/83/
  5.  
  6. # List of default directories (absolute paths) that will be processed
  7. defaultdirs="/users/stronk7/git_moodle/moodle
  8. /users/stronk7/git_moodle/integration
  9. /users/stronk7/git_moodle/testing
  10. /users/stronk7/git_moodle/ci-tests
  11. /users/stronk7/git_moodle/survey
  12. /users/stronk7/git_moodle/mediawiki"
  13.  
  14. dirs="${1:-${defaultdirs}}"
  15.  
  16. for dir in $dirs
  17. do
  18. echo "processing $dir";
  19. cd $dir
  20. $HOME/bin/ctags -R --languages=php \
  21. --exclude="CVS" \
  22. --exclude=".git" \
  23. --exclude="vendor" \
  24. --exclude="node_modules" \
  25. --fields=+aimlS \
  26. --php-kinds=cdfint \
  27. --tag-relative=yes \
  28. --totals=yes
  29. done
Advertisement
Add Comment
Please, Sign In to add comment