#!/bin/csh -f
#

set remove_list = `cvs -n up | grep '^U ' | sed -e's/^U / /'`

# Warning -- do not EVER modify the files outside this directory!
foreach f ( $remove_list )
echo "Removing $f"
   cvs rm $remove_list
end

set keep_going = 1
while ( $keep_going ) 
   set add_list = `cvs -n up | grep '^\? ' | sed -e's/^? / /'`

   if ( "x$add_list" == "x" ) then
      set keep_going = 0
   else
      foreach f ( $add_list . )
         cvs add $f
      end
   endif
end

cvs commit -m "Automated commit"
