summaryrefslogtreecommitdiff
path: root/games/crossfire-srv/deinstall
blob: 22e17683bf9cce40772a118a050de0695558e885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!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__