#!/usr/bin/perl my $path = shift; open(FO, "<$path") || die "open(\"<$path\"): $!"; open(FN, ">$path.new") || die "open(\">$path.new\"): $!"; while (<FO>) { if (/^filename\s+.*;$/) { next; } 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; } rename($path, "$path.old") || die; rename("$path.new", "$path") || die; exit 0;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 6301 | Richard Geiger |
These changes resulted from a recent customer conversion. A checkpoint, more or less. |
||
#4 | 5688 | Richard Geiger | consistently invoke perl via PATH | ||
#3 | 5638 | Richard Geiger |
update to handle "mergepoint\d+" attributes cc: daveb@data-pipes.com |
||
#2 | 5633 | Richard Geiger |
Handle the "filename" attribute that some RCS/CVSes apparently create these days... Also, be sure to wipe the Convdir/p4root before genmetadata does it's thing, so as to remove any ,v files that genmetadata might find there. Also for general hygiene! |
||
#1 | 4279 | Richard Geiger | Add rcsfixup to strip RCS lines that Perforce won't like... |