mdbrebase: fix prefix replacement, add regex & filename modes
authorAaron Bockover <abock@xamarin.com>
Fri, 4 Oct 2013 14:26:24 +0000 (10:26 -0400)
committerAaron Bockover <abock@xamarin.com>
Fri, 4 Oct 2013 14:26:24 +0000 (10:26 -0400)
commitb8be8f0e634d6197b49321eed4d7e5cbd429dbb5
treee30b024d301b64d511ce1ef88443453bab4f3f69
parent8e037f7ceffa9d2b72d76451fbf5c5e388efe349
mdbrebase: fix prefix replacement, add regex & filename modes

Existing prefix replacement was incorrect as
it tested for a prefix but performed a multi
search and replace instead of just a prefix
replace. Fix that.

Add -r|--regex mode to indicate that path
replacement should be performed with regular
expressions.

Add -f|--filename mode to indicate that
replacements should be performed only on
a file name and not the full absolute path.

Add -v|--verbose mode to print the replacements
that are performed.
mcs/tools/mdbrebase/mdbrebase.cs