File: look_rlog

package info (click to toggle)
lsof 4.99.4%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,924 kB
  • sloc: ansic: 50,680; sh: 8,351; makefile: 1,194; perl: 940; awk: 214
file content (21 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/ksh
#
# look_rlog
#set -v			# for DEBUGging

if test $# -ne 2
then
  echo "$0 usage: file highest-revision"
  exit 1
fi
if test ! -r RCS/${1},v
then
  echo "$0: no RCS/${1},v"
  exit 1
fi
r=$2
while test $r -gt 0
do
  (echo 1.$r; co -p1.$r $1) | less
  r=`expr $r - 1`
done