#! /bin/sh

# Copyright (C) 1999, Free Software Foundation
# Originally by Alexandre Oliva <oliva@gnu.org>
# Improvements suggested by Pavel Roskin <pavel_roskin@geocities.com>

# This script is Free Software, and it can be copied, distributed and
# modified as defined in the GNU General Public License.  A copy of
# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html

# Reload files from the listed files directories from the CVS
# repository.  This is useful to restore a CVS tree to an unpatched
# state, if it is impossible to revert a patch for some reason, such
# as some of the modified files being binary or generated from others.

# Usage: cvsreloadall

test $# = 0 && set .

cvsu ${1+"$@"} | sed -n 's/^M //p' | xargs cvsreload
