[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: small bug in lib/cvs/contrib/sccs2rcs script?
From: |
Larry Jones |
Subject: |
Re: small bug in lib/cvs/contrib/sccs2rcs script? |
Date: |
Wed, 23 May 2001 15:30:26 -0400 (EDT) |
Hayes, Ted writes:
>
> The "Y2K patch" added to the lib/cvs/contrib/sccs2rcs script (sccs2rcs.in in
> 1.11.1p1) doesn't look too convincing - it seems to try to use the "date"
> shell variable before it has been set. I believe the "sccs prs" command has
> to be run first defaulting the century to (say) 1900 - then the year
> processing can be carried out subsequently. My adjusted v1.11 sccs2rcs
> contains the commands:
I thought I had already fixed that, but I guess not. I've just checked
in a much simpler fix (if you're going to use awk, you might as well
*use* it):
set date = `sccs prs -r$rev $file | awk '/^D / {if (substr($3,0,2)+0 <
70) print "20" $3, $4; else print "19" $3, $4; exit}'`
-Larry Jones
It's a Doofus Ignoramus! Our hero slowly reaches for his stun blaster!
-- Calvin