reinplace loop

Mark Brethen mark.brethen at gmail.com
Sun Jul 13 13:18:41 PDT 2014


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






More information about the macports-dev mailing list