Merge branch 'contrib' into 0.2.1-FINAL
[mailer.git] / contrib / wrapper.sh
1 #!/bin/sh
2
3 # This script helps to generate a list of requested, missing wrapper functions
4
5 if ! test -e "modules.php"; then
6         echo "$0: Please execute this script from root directory."
7         exit 1
8 fi
9
10 grep --text "Please consider adding it to improve execution speed" inc/cache/debug.log* | \
11         grep -v top10_max | \
12         cut -d "|" -f 6 | \
13         cut -d " " -f 3 | \
14         sort --unique | \
15         grep -v "getActiveLimit" | \
16         grep -v "getBonusUserid" | \
17         grep -v "getTop10Max" > w.log
18
19 cat w.log wrapper.log | sort --unique > w && mv w wrapper.log
20 rm w.log