Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 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/survey
  11. /users/stronk7/git_moodle/mediawiki"
  12.  
  13. dirs="${1:-${defaultdirs}}"
  14.  
  15. for dir in $dirs
  16. do
  17. echo "processing $dir";
  18. cd $dir
  19. $HOME/bin/ctags -R --languages=php \
  20. --exclude="CVS" \
  21. --exclude=".git" \
  22. --exclude="vendor" \
  23. --exclude="node_modules" \
  24. --fields=+aimS \
  25. --php-kinds=cdfint \
  26. --tag-relative=yes \
  27. --totals=yes
  28. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement