ParityCheck

February 29, 2008

How to add directories and subdirectories to a CVS repository

Filed under: Linux, Unix — paritycheck @ 2:29 pm

Here is a quick way to add directories and subdirectories to an existing CVS repository 

cvs add top_level_directory
find top_level_directory -type d -print | xargs cvs add
find top_level_directory -name CVS -prune -o -type f -print | xargs cvs add

The instruction below adds the top-level called top_level_directory directory to the CVS repository 

cvs add top_level_directory

The instruction below finds all subdirectories under top_level_directory and issues a cvs add command to subdirectories that are found

find <folder_name> -type d -print | xargs cvs add

The instruction below finds all files not including CVS files and issues a cvs add command

find <folder_name> -name CVS -prune -o -type f -print | xargs cvs add
 

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.