Note to Self

Put additional files under CVS control

If you have potentially added new files and directories to a CVS work area and want to put them under version control, you need to add the directories first before you can add the files.

This assumes that the new files do not have names with white space in them.

find . -type d \! -name CVS | while read i
do
    if [ -d $i/CVS ]
    then
        :
    else
        cvs -q add $i
    fi
done

cvs -qn update | awk '$1 == "?" {print $2}' | xargs cvs -q add