reinplace loop

Mark Brethen mark.brethen at gmail.com
Sun Jul 13 13:19:50 PDT 2014


On Jul 13, 2014, at 3:18 PM, Mark Brethen <mark.brethen at gmail.com> wrote:

> Given a directory tree
> 
> src/Mod
>      |-- Arch
>      |-- Assembly
>      |-- Cam
>      |-- CMakeFiles
>      |-- Complete
> 
> In need to reinplace the CMakeLists file in each subdirectory, replacing 'Mod/(subdirectory)' with 'lib/${name}/Mod/(subdirectory). How do you write a tcl loop to accomplish this? (Avoids creating a multitude of patch files.)
> 
> 
> Mark
> 
> 
> 
> 

I forgot to add that the 'CMakeFiles' should be skipped.

Mark






More information about the macports-dev mailing list