/[Frey]/trunk/bin/rename-method.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/bin/rename-method.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 554 - (hide annotations)
Thu Nov 27 17:37:52 2008 UTC (15 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 213 byte(s)
cleanup
1 dpavlin 466 #!/bin/sh
2    
3 dpavlin 554 from='params_form';
4     to='as_markup'
5 dpavlin 466
6 dpavlin 554 echo "rename method $from -> $to"
7 dpavlin 466
8 dpavlin 554 grep -lr $from lib t etc | xargs --verbose -i sh -c "perl -p -i -n -e 's{(sub |->|/)$from}{\1$to}g' {}" && (
9     svk diff | vi -R -
10     )

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26