fi
find_files () {
- ack-grep -l --php $old | grep -v www/include/pre.php
+ ack-grep -l --php $old | grep -v common/include/config-vars.php
}
find_files | xargs perl -pi -e"
s/^\\s*global +\\\$$old *;//;
-s/^(\\s*global +)\\\$$old *,/\\1/;
+s/^(\\s*global) +\\\$$old *,/\\1 /;
s/^(\\s*global .*), *\\\$$old/\\1/;
s,\\\$GLOBALS\['$old'\](?"\!"\\s*=),$newstr,g;
s,\\\$GLOBALS\[$old\](?"\!"\\s*=),$newstr,g;