SCCS uses 2-digit years, and sccs2rcs copes with this by adding a 19
to the front of the year.
This patch makes years >= xx60 into 19xx, and years < xx60 to 20xx.
Enjoy!
-jeff
--- /usr/lib/cvs/contrib/sccs2rcs Wed Jul 12 07:34:39 2000
+++ /home/igor/bin/sccs2rcs Fri Apr 20 12:40:53 2001
@@ -177,7 +177,7 @@
if ($status != 0) goto ERROR
# 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 date = `sccs prs -r$rev $file | grep "^D " | awk '{sub("^[0-5][0-9]/.*$",
+"20&", $3); sub("^[6-9][0-9]/.*$", "19&", $3); printf("%s %s", $3, $4); exit}'`
set author = `sccs prs -r$rev $file | grep "^D " | awk '{print $5; exit}'`
echo ""
echo "==> file $file, rev=$rev, date=$date, author=$author"
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs