blob: fe87dad0d2a6aaa260db86026c86f38c9a8caaae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#
# BEGIN COPYRIGHT BLOCK
# Copyright 2001 Sun Microsystems, Inc.
# Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# the argument is the full path and filename of the perldap.inf file
$infile = $ARGV[0];
$outfile = $ARGV[0] . ".tmp";
open(IN, $infile) or die "Error: could not read file $infile: $!";
open(OUT, ">$outfile") or die "Error: could not write file $outfile: $!";
while (<IN>) {
if (/^Description/) {
s/The Sun \| Netscape Alliance/Netscape/g;
s/iPlanet/Netscape/g;
} elsif (/^Vendor/) {
s/Sun \| Netscape Alliance/Netscape Communications Corp./g;
}
print OUT;
if (/^Archive=perldap14.zip/) {
print OUT "Visible=FALSE\n";
}
}
close OUT;
close IN;
unlink $infile;
rename $outfile, $infile;
|