File: README

package info (click to toggle)
msrp 0.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 456 kB
  • ctags: 85
  • sloc: sh: 3,711; cpp: 550; makefile: 51
file content (22 lines) | stat: -rw-r--r-- 1,165 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
msrp by Rudi Cilibrasi <cilibrar@cilibrar.com>

The Meta Search and Replace (msrp) is a simple utility that lets you
quickly rename symbols or functions or classes or anything using
Perl 5 compatible regular expressions.  msrp is a time saver because it
applies your substitution to both the contents of files as well as the
filenames themselves.  This means that msrp can be used in most modern
programming languages and programming frameworks where filenames (part
of file metadata) are used to indicate certain correspondances with
source code symbols.  If the filenames and source symbols must be
kept consistent or changed consistently, then msrp is the ideal tool.
Most languages that support modules embedded in filesystems also have
this same kind of semantic entanglement.

Here are some examples of languages or frameworks that can benefit from
msrp functionality:

C/C++ programming (.h files are usually named similar to type names)
Ruby on Rails (model names must match model filenames, same with views)
Java programming (renaming classes via regular expression en masse)
Debian packaging ( cp -rv ../debian . &&  msrp oldpkgname newpkgname debian/ )