From 5eb3efc543d5f7e45ddbcb11331b1bf1aca3447e Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Sun, 28 Apr 1991 13:16:14 +0000
Subject: [PATCH] Changed to repeatedly exec rlog instead of just calling once,
 as it seems to lose big if you give it too many files.  Also, added a -time
 option which is passed through to find to reduce the number of times rlog is
 called.

---
 tools/updates | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tools/updates b/tools/updates
index a73bc665d..46b666825 100755
--- a/tools/updates
+++ b/tools/updates
@@ -2,6 +2,7 @@
 
 set from = ""
 set to = ""
+set mtime = ()
 set dirs = ()
 
 while ($#argv > 0)
@@ -17,6 +18,10 @@ while ($#argv > 0)
 				set to = $argv[2]
 				shift
 				breaksw
+			case "-mtime":
+			        set mtime = ($argv[1-2])
+				shift
+				breaksw
 			default:
 				echo "Bogus switch: $argv[1]"
 				exit
@@ -27,8 +32,7 @@ end
 
 if ($#dirs == 0) set dirs = .
 
-find $dirs -follow -name '*,v' -print | \
-    rlog - "-d$from<$to" | \
+find $dirs -follow -name '*,v' $mtime -exec rlog  "-d$from<$to" '{}' \; | \
     sed -n -e '/^RCS file:/p' -e '/^------/,/^======/p' | \
     sed -e '/^RCS file:/{;:again\
 	N;s/^RCS file.*\nRCS file/RCS file/;t again\
-- 
GitLab