source: trunk/junk/_dcgrep @ 1184

Revision 852, 451 bytes checked in by cdleonard@…, 4 years ago (diff)

svn:eol-style native in trunk. Also svn:executable on all scripts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# Check dependencies
4#
5# Outputs all .php files in a given directory (recursive)
6# that use a given function name but do not link its source module.
7#
8# usage: checkdep function_name module_where_it_is_defined
9# example: checkdep user_get_by_username db/user.php ./
10egrep "\s+$1\(|^$1\(" -R $3www/ $3scripts/ $3common/ $3eval/ -c --include=*.php | grep -v :0 | cut -f1 -d ":" | xargs grep "$2" -c | grep :0 | cut -f1 -d ":" | grep -v $2
11
Note: See TracBrowser for help on using the repository browser.