head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	99.07.26.04.28.15;	author dr;	state Exp;
branches;
next	1.2;

1.2
date	98.09.20.01.54.27;	author dunc;	state Exp;
branches;
next	1.1;

1.1
date	98.09.20.01.16.42;	author dunc;	state Exp;
branches;
next	;


desc
@Show individual diffs between all RCS revisions of multiple files
@


1.3
log
@Avoid warning when run out of args.
*** NEEDS better way to tell when off end of revisions
@
text
@#!/bin/sh
# $Id: alldiffs,v 1.2 1998/09/20 01:54:27 dunc Exp dr $
# set -x
if [ -z $1 ];then
  echo "Usage: $0 file [file...]"
  exit 1
fi
while true;do
  i=1
  j=2
  l=true
  while $l;do
    rcsdiff -r1.$i -r1.$j -w $1
    e=$?
    if [ $e -eq 0 ];then l=false
    elif [ $e -ne 1 ];then
      echo "rcsdiff returned error code $e"
      exit 1
    fi
    i=`expr $i + 1`
    j=`expr $j + 1`
  done # while $l
  l=true
  while $l;do
    shift
    if [ -z "$1" ];then exit 0;fi
    if [ -f RCS/$1,v ];then l=false;fi
  done # while $l
done # while true
@


1.2
log
@Works for multiple args; -w forced; checks existence of RCS file
@
text
@d2 1
a2 1
# $Id: alldiffs,v 1.1 1998/09/20 01:16:42 dunc Exp dunc $
d26 1
a26 1
    if [ -z $1 ];then exit 0;fi
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Id: $
d8 22
a29 14
i=1
j=2
l=true
while $l;do
  rcsdiff -r1.$i -r1.$j $1
  e=$?
  if [ $e -eq 0 ];then l=false
  elif [ $e -ne 1 ];then
    echo "rcsdiff returned error code $e"
    exit 1
  fi
  i=`expr $i + 1`
  j=`expr $j + 1`
done
@
