I have a certain folder(named SDK) containing many other folders as a VOB element in my dynamic view.
/vobs/tools/SDK
I also have a updated version of that folder elsewhere as view private (as flat files).
/homes/user/SDK
I need to add files which were introduced in the updated version to the checked in version which did not have them. I have a text file containing all the files which were newly introduced in the updated version.
/homes/user/files.txt
Contents of files.txt
./a/b/abc.cpp
./s/t/xyz.cpp
.
.
.
Which is the best way to have these files checked in at at appropriate location?
clearfsimport
will not work because it takes the leaf of the source path and checks that at the target VOB location.
i.e.
clearfsimport -nset /homes/user/SDK/a/b/abc.cpp /vobs/tools/SDK
clearfsimport -nset /homes/user/SDK/s/t/xyz.cpp /vobs/tools/SDK
wouldn't create the /a/b/
and /s/t/
directories in /vobs/tools/
.
I could use mkelem
but that would require me to manually create the directory /a/
then /a/b/
and then copy the file abc.cpp
and checkin back the newly created directories and the file itself.
Can someone suggest the most efficient way of doing it?