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


1.10
date	2011.11.26.08.52.43;	author dunc;	state Exp;
branches;
next	1.9;

1.9
date	2011.01.26.00.29.46;	author dunc;	state Exp;
branches;
next	1.8;

1.8
date	2011.01.26.00.24.38;	author dunc;	state Exp;
branches;
next	1.7;

1.7
date	2009.03.21.07.41.02;	author dunc;	state Exp;
branches;
next	1.6;

1.6
date	2009.01.16.01.36.17;	author dunc;	state Exp;
branches;
next	1.5;

1.5
date	2009.01.16.01.04.43;	author dunc;	state Exp;
branches;
next	1.4;

1.4
date	2003.01.06.01.57.59;	author dunc;	state Exp;
branches;
next	1.3;

1.3
date	99.08.21.03.27.48;	author dunc;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.10
log
@Aggregated improvements from Mintec and home
@
text
@#!/bin/sh
#set -x
if [ ! -d RCS ];then echo "No RCS dir here";exit 1;fi
for r in RCS/*,v RCS/.??*,v;do
  if [ "$r" != "RCS/*,v" -a "$r" != "RCS/.??*,v" ];then
    i="$(basename "$(basename $r)" ,v)"
    if [ -f "$i" ];then
      rlog -L -h "$i"|grep Working
      rcsdiff $* "$i" 2>&1|egrep -v '============|RCS file: RCS/|retrieving revision'
    fi
  fi
done
@


1.9
log
@Don't want quotes round args else multiple options fail
@
text
@d4 3
a6 6
k="$1"
[ "$1" = "-doIt" -o "$1" = "-noArgs" ] &&
{
  shift
  while [ -n "$1" ];do
    i=$(basename "$(basename "$1")" ,v)
d9 1
a9 5
      if [ $k = -doIt ];then
        rcsdiff $args "$i" 2>&1|egrep -v '============|RCS file: RCS/|retrieving revision'
      else
        rcsdiff "$i" 2>&1|egrep -v '============|RCS file: RCS/|retrieving revision'
      fi
d11 2
a12 7
    shift
  done
  exit
}
export args="$@@"
[ -n "$args" ] && k=-doIt || k=-noArgs
find RCS -follow -name '*,v' -o -name '.??*,v'|sed 's/ /\\ /g'|xargs -n 32 $0 $k
@


1.8
log
@Fix stupid bug in if stmt that stopped args working
@
text
@d13 1
a13 1
        rcsdiff "$args" "$i" 2>&1|egrep -v '============|RCS file: RCS/|retrieving revision'
@


1.7
log
@Specify -follow in case RCS is a symlink
@
text
@d2 1
d12 1
a12 1
      if [ $k = -doit ];then
@


1.6
log
@Need to do more work to pass thru optional cmd line args
@
text
@d23 1
a23 1
find RCS -name '*,v' -o -name '.??*,v'|sed 's/ /\\ /g'|xargs -n 32 $0 $k
@


1.5
log
@Cater for spaces in filenames
@
text
@d3 2
a4 1
[ "$1" = "-doIt" ] &&
d11 5
a15 1
      rcsdiff "$args" "$i" 2>&1|egrep -v '============|RCS file: RCS/|retrieving revision'
d22 2
a23 1
find RCS -name '*,v' -o -name '.??*,v'|sed 's/ /\\ /g'|xargs -n 32 $0 -doIt
@


1.4
log
@Use egrep to save multiple grep invocations
@
text
@d3 15
a17 11
for r in RCS/*,v RCS/.??*,v;do
  if [ "$r" = 'RCS/*,v' -o "$r" = 'RCS/.??*,v' ];then
    continue
  fi
  t=`basename $r`
  i=`basename $t ,v`
  if [ -f $i ];then
    rlog -L -h $i|grep Working
    rcsdiff $* $i 2>&1|egrep -v '============|RCS file: RCS/|retrieving revision'
  fi
done
@


1.3
log
@Also check . files; guard against no glob expansion
@
text
@d11 1
a11 1
    rcsdiff $* $i 2>&1|grep -v '============'|grep -v 'RCS file: RCS/'|grep -v 'retrieving revision'
@


1.2
log
@Check for presence of RCS dir
@
text
@d2 5
a6 2
if [ -d RCS ];then :;else echo "No RCS dir here";exit 1;fi
for r in RCS/*,v;do
@


1.1
log
@Initial revision
@
text
@d2 1
@
