Apache-PageKit

 view release on metacpan or  search on metacpan

scripts/pkit_rename_app.pl  view on Meta::CPAN

139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
  pkit_rename_app.pl pkit_root MyNewAplicationName
  pkit_rename_app.pl --svn pkit_root MyNewAplicationName
  pkit_rename_app.pl --svk pkit_root MyNewAplicationName
    
C<MyNewAplicationName> is the new name for your application.
 
C<pkit_root> is the name of root of your application. That is the Directory where F<Config>, F<Model>, F<View> and F<Content> is.
 
=head1 Description
 
The script renames the application B<INPLACE> so do it on a backup.
It reads the F<Config/Config.xml> to figure out what your old name is.
Then all is the file F<Config/Config.xml> and all your F<*.pm> files are scanned and and replaced with your new App's name. As a last step your directory F<Model/oldname> is moved to F<Model/newname> thats it.
 
This might become handy if you start a new application and you can reuse a good part of an older one. It is also helpfull if you work on more sites and you have some virtualhosts running F<Apache::Pagekit> applications.
 
=head1 Example
 
Now a little example that clones the example site to anotherone.
 
  cp -r eg a_new_site



( run in 0.308 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )