pkgsrc/games/crossfire-srv/deinstall

20 lines
456 B
Text
Raw Normal View History

#!XXXLOCALBASEXXX/bin/perl
#
# $NetBSD: deinstall,v 1.2 2003/05/06 17:41:17 jmmv Exp $
#
open (FILE,"XXXLOCALBASEXXX/etc/rplay.conf");
open (OUT,">tmp");
@data = <DATA>;
while (<FILE>) {
$found=0;
foreach $datum (@data) {
$found++ if ($datum eq $_);
}
print OUT "$_" if ($found == 0);
}
close(OUT);
close(FILE);
system("mv tmp XXXLOCALBASEXXX/etc/rplay.conf");
system("XXXX11BASEXXX/bin/mkfontdir XXXX11BASEXXX/lib/X11/fonts/misc");
__END__