/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1157 - (show annotations)
Thu Jul 2 15:29:41 2009 UTC (13 years, 7 months ago) by dpavlin
File MIME type: application/x-sh
File size: 269 byte(s)
added parameters for old and new method name
1 #!/bin/sh
2
3 test -z "$1" -o -z "$2" && echo "usage: $0 old_method new_method" && exit
4
5 from=$1
6 to=$2
7
8 echo "# rename method $from -> $to"
9
10 grep -lr $from lib t etc | xargs --verbose -i sh -c "perl -p -i -n -e 's{(sub |->|/)$from}{\1$to}g' {}" && (
11 svk diff | vi -R -
12 )

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26