Heres one for Apache Ant <target name="deploy"> <echo message="---- Removing require_once ----" /> <replaceregexp byline="true"> <regexp pattern="require_once 'Zend/"/> <substitution expression="// require_once 'Zend/"/> <fileset dir="${basedir}/library/Zend" excludes="**/*Autoloader.php" includes="**/*.php" /> </replaceregexp> </target>
2009/7/5 admirau <admi...@gmail.com>: > > > > Matthew Ratzloff wrote: >> >> The complete command is therefore: >> >> % cd path/to/ZendFramework/library >> % find . -name '*.php' | grep -v './Loader/Autoloader.php' | \ >> xargs sed -E -i~ 's/(require_once)/\/\/ \1/g' >> % find . -name '*.php~' | xargs rm -f >> > > Shouldn't this script be part of the ZF package? > > -- > regards > takeshin > > -- > View this message in context: > http://www.nabble.com/Removing-Require_once-tp24261910p24341443.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- ---------------------------------------------------------------------- [MuTe] ----------------------------------------------------------------------