reinplace loop

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

Given a directory tree

      |-- 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.)


More information about the macports-dev mailing list