On Tue, Apr 26, 2016 at 02:58:28PM -0500, Derek Martin wrote:
I've used to find the list of symbols which would need to change (run
in the root of the mutt-1.6 source tree):

$ find . -name "*.[ch]" -exec grep -Ro '\WM_\w\+' {} \; |sed 's/^\W*//' |sort -u 
> symbols
$ wc -l symbols
245 symbols

The following seems to handle the search-and-replace just fine (it
does in-place replacement, so test it on a copy of the tree first):

   perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print`

This compiles error-free on my system.  However, I'm not sure if any
of the M_* symbols are meant to be external symbols defined elsewhere.

-- Andras Salamon                   [email protected]

Reply via email to