#!/bin/ksh
# Generates a diff for every file that is not checked in.

if [[ $* != "" ]]
then
	compareprog=$*
else
	compareprog="diff -c"
fi

rcslocked | cut -f2 -d: | cut -f2 -d\  | cut -f1 -d, | cut -c5- | xargs -i -t echo co -p {} '|' $compareprog '-w' '-' {} '>'{}.dif  | sh
