Last active
August 29, 2015 14:22
-
-
Save PeloNZ/1133799a7cad9393c327 to your computer and use it in GitHub Desktop.
scan for moodle deprecated functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Scan for moodle deprecated functions in use | |
# Start from base directory | |
grep '^function' lib/deprecatedlib.php | cut -d ' ' -f 2 | cut -d '(' -f 1 | while read -r line ; do grep -rn "$line(" path/to/plugin ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment