Here's one that I use...

=================================================
#! /bin/csh -f
#
# Script to remove (non-directory) files from cvs.
# Usage: cvsremove.sh FILES...
#
# ------------------------------------------------

# If no files specified, print usage
if ($#argv == 0) then
  echo "Usage: cvsremove.sh FILES..."
  exit
endif

# Create list of non-directory files
set fnames = ()
foreach file ($argv)
  if (! -d $file) then
    set fnames = ($fnames $file)
  else
    echo "Ignoring directory '$file'."
  endif
end

# Remove from CVS, all at once
rm -f $fnames
cvs remove $fnames
===================================================

Removing all files in a list at once has the advantage that if the CVS
repository is accessed over ssh, then it'll ask you for a password just
once.

The script can be used to remove just one file:

  cvsremove.sh FILENAME

More than one file:

  cvsremove.sh FNAME1 FNAME2

Or all files in the directory:

  cvsremove.sh *





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/x3XolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nlpatumd/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to