[cvs] [Wiki] changed: Doc/Horde4Conversion
Michael Slusarz
slusarz at horde.org
Wed Mar 17 06:28:44 UTC 2010
slusarz Wed, 17 Mar 2010 02:28:44 -0400
Modified page: http://wiki.horde.org/Doc/Horde4Conversion
New Revision: 1.4
Change log: fix grep format
@@ -6,8 +6,8 @@
All Horde 4 classes should be prefixed with Horde_ to allow
autoloading of the files. When converting from Horde 3 format (e.g.
Foo class) to Horde 4 format (e.g. Horde_Foo), the following commands
are useful to convert all files automatically:
<code>
-find . -type f \( ! -wholename "./.git/*" ! -name "CHANGES" \) |
xargs grep -l '[ \(\]\!\)]Foo::' | xargs sed -i -r -e 's/([\
\(\^\!\)])Foo::/\1Horde_Foo::/g'
+find . -type f \( ! -wholename "./.git/*" ! -name "CHANGES" \) |
xargs grep -l '[] (!)]Foo::' | xargs sed -i -r -e 's/([\
\(\^\!\)])Foo::/\1Horde_Foo::/g'
find . -type f \( ! -wholename "./.git/*" ! -name "CHANGES" \) |
xargs grep -l '&Foo::' | xargs sed -i -r -e 's/&Foo::/Horde_Foo::/g'
find . -type f \( ! -wholename "./.git/*" ! -name "CHANGES" \) |
xargs grep -l '^Foo::' | xargs sed -i -r -e 's/^Foo::/Horde_Foo::/g'
</code>
More information about the cvs
mailing list