Hi All,
I hope someone out there has answer to that:
....here is the scenario:
I checkout this structure from CVS :
root/project/dir1/dir2 to My_CVS_Dir. I've another folder My_Dir and there is dir3 which I copy to My_CVS_Dir and get that structure in My_CVS_Dir, root/project/dir1/dir2/dir3.
I do an CVS update and update generate this list:
? root/project/dir1/dir2/dir3
U root/project/dir1/dir2/file1
U root/project/dir1/dir2/file2
U root/project/dir1/dir2/file3
? in line one means something is new for CVS (because of dir3)
U in line 2-4 means files are unchanged.
I'm going to have this kind of list with many ? because there are many new directories to add under dir2. And in general there can be many subdirectories like dir4/dir5/dir6 to add under dir2.
My question is to how to write this in Bash...If there is just one dir3 to add then it is simple I just use thes commands: mkdir dir2 and CVS add dir3. But if there are many directories under dir3 so how do I check that...
May be my question is not clear...please feel free to ask more informatio.
Thanks!
Regards