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 466 - (hide annotations)
Wed Nov 19 19:27:38 2008 UTC (14 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 695 byte(s)
script used to rename methods
1 dpavlin 466 #!/bin/sh
3     # rename methods
5     perl -p -i -n -e 's/sub markup/sub as_markup/' `grep -lr 'sub markup' lib t`
6     perl -p -i -n -e 's/sub data/sub as_data/' `grep -lr 'sub data' lib t`
7     perl -p -i -n -e 's/sub sponge/sub as_sponge/' `grep -lr 'sub sponge' lib t`
9     perl -p -i -n -e 's/->markup/->as_markup/' `grep -lr -- '->markup' lib t`
10     perl -p -i -n -e 's/->data/->as_data/' `grep -lr -- '->data' lib t`
11     perl -p -i -n -e 's/->sponge/->as_sponge/' `grep -lr -- '->sponge' lib t`
13     perl -p -i -n -e 's!/markup!/as_markup!' `grep -lr -- '/markup' lib t etc`
14     perl -p -i -n -e 's!/data!/as_data!' `grep -lr -- '/data' lib t etc`
15     perl -p -i -n -e 's!/sponge!/as_sponge!' `grep -lr -- '/sponge' lib t etc`


Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26