Guest User

Untitled

a guest
Apr 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/bash
  2. for arg in "$@"; do
  3. if [ -d $arg ]; then
  4. #echo Create list of php files in cscope.files
  5. find $arg \( -name "*.php" -or -name "*.tpl" \) -and -not -regex "./temp/.*" -and -not -regex ".*/language.php" -print > $arg/cscope.files
  6. #echo Create cscope database in cscope.out
  7. cscope -b -i $arg/cscope.files -f$arg/.cscope.out
  8. rm -f $arg/cscope.files
  9. else
  10. echo "Directory not found: $arg"
  11. fi
  12. done
Add Comment
Please, Sign In to add comment