bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

small bug in lib/cvs/contrib/sccs2rcs script?


From: Hayes, Ted (London)
Subject: small bug in lib/cvs/contrib/sccs2rcs script?
Date: Wed, 23 May 2001 16:36:07 +0100

(have looked at CVS v1.11 and CVS 1.11.1p1)

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:

        # get file into current dir and get stats
        set date = `sccs prs -r$rev $file | grep "^D " | awk '{printf("19%s
%s", $3, $4); exit}'`
        set author = `sccs prs -r$rev $file | grep "^D " | awk '{print $5;
exit}'`

        #  moved this into the right place (CVS distro is flawed)
        set year = `echo $date | cut -c3-4`
        if ($year < 70) then
            # Y2K Bug, change century to 20
            set date = `echo $date | sed -e s/19/20/`
        endif


Regards

Ted Hayes




reply via email to

[Prev in Thread] Current Thread [Next in Thread]