#!/bin/csh -f

set path = ( ~/cvs-1.11/src $path )
set SRC_DIR = `pwd`
setenv CVSROOT /tmp/cvs_test/repository
rm -fr /tmp/cvs_test
mkdir /tmp/cvs_test
cd /tmp/cvs_test
cvs init
mkdir moduletest
cd moduletest
cp $SRC_DIR/OLDFILE t
cvs import -m "test log" moduletest vendortest start_release_tag
cd ..
\rm -fr moduletest

cvs --version

cvs rtag -b tag moduletest
cvs checkout -r tag moduletest
cd moduletest

echo before diff
diff t $SRC_DIR/OLDFILE

cp $SRC_DIR/YOURFILE t
cvs -Q ci -m ""

echo before update -A
cvs update -A

echo before update -j tag
cvs update -j tag

echo before diff
diff $SRC_DIR/YOURFILE t
