James Tison writes:
> I've also seen suggestions to edit the makefiles with sed, which I think
> will absolutely be the cleanest way to take care of the problem...
Or even more cleanly with a simple one-liner:
perl -i.bak -ple 's{/a/b}{/c/d}; s{-Lx}{-Ly}' `find . -name Makefile`
which will also take backups of the original version of each file
by copying it with the name ".bak" tacked on the end.
> the
> trick will be isolating only those makefiles that need change.
If you don't want all Makefiles changed then you'd want to tweak the
"find" conditions (or pre-form the list of filenames in another file
or tweak the Perl part a bit to do The Right Thing.
--Malcolm
--
Malcolm Beattie <[EMAIL PROTECTED]>
Linux Technical Consultant
IBM EMEA Enterprise Server Group...
...from home, speaking only for myself