Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 397bca0d02d3e23c5b55320e2a79550f > files > 34

zfs-fuse-0.7.0-11.fc18.i686.rpm

#!/usr/bin/perl

# Just fix the / comments in the S files and replace them by // (super easy)
# pass in argument the name of the file to update

while (my $file = shift @ARGV) {
    open(F,"<$file") || die "open $file\n";
    my @lines = <F>;
    close(F);
    for (my $i=0; $i<=$#lines; $i++) {
	$lines[$i] =~ s/\t\/ /\t\/\/ /;
    }
    open(F,">$file") || die "write $file\n";
    print F @lines;
    close(F);
}