#!/usr/bin/perl
my $path = shift;
open(FO, "<$path") || die "open(\"<$path\"): $!";
open(FN, ">$path.new") || die "open(\">$path.new\"): $!";
while (<FO>)
{
if (/^permissions\s+\d+;$/) { next; }
if (/^commitid\s+[a-f\d]+;$/) { next; }
if (/^kopt\s+[a-z]+;$/) { next; }
if (/^deltatype\s+[a-z]+;$/) { next; }
print FN;
if (/^desc$/) { last; }
}
while (<FO>)
{ print FN; }
close(FO);
close(FN);
rename($path, "$path.old") || die;
rename("$path.new", "$path") || die;
exit 0;
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #2 | 5386 | Jeffery G. Smith |
util.pl:rcsfixfile needs to write out the file no matter what to correct line endings remove hidden attribute on Windows replace %USERNAME% with current username rcsfixup close the streams before renaming the files converter comment out debug code add cvs2p4lblfix |
||
| #1 | 5204 | Jeffery G. Smith | Create personal development branch. | ||
| //guest/perforce_software/utils/cvs2p4/bin/rcsfixup | |||||
| #1 | 4354 | Richard Geiger | Integrate 2.4 changes. | ||
| //guest/richard_geiger/utils/cvs2p4/bin/rcsfixup | |||||
| #1 | 4279 | Richard Geiger | Add rcsfixup to strip RCS lines that Perforce won't like... | ||