#! /bin/sh

# Copyright (C) 1999, Free Software Foundation
# Originally by Alexandre Oliva <oliva@gnu.org>

# 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

# This script runs cvs diff with the given arguments, and massages its
# output so that it can be immediately fed to `cl2patch | patch -p0'.

cvs -q diff ${1+"$@"} | fixpatch | clcleanup
