Add missing win32_closesocket() and export it (extension writers' complaint).
[p5sagit/p5-mst-13.2.git] / win32 / config_sh.PL
CommitLineData
137443ea 1my %opt;
2while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/)
3 {
4 $opt{$1}=$2;
5 shift(@ARGV);
6 }
7bac28a0 7
c90c0ff4 8if ($] =~ /\.(\d\d\d)?(\d\d)?$/) { # should always be true
9 $opt{PATCHLEVEL} = int($1 || 0);
10 $opt{SUBVERSION} = $2 || '00';
11}
12
d484a829 13$opt{'cf_by'} = $ENV{USERNAME} unless $opt{'cf_by'};
14$opt{'cf_email'} = $opt{'cf_by'} . '@' . (gethostbyname('localhost'))[0]
15 unless $opt{'cf_email'};
16
137443ea 17while (<>)
18 {
19 s/~([\w_]+)~/$opt{$1}/g;
20 $_ = "$1='$opt{$1}'\n" if (/^([\w_]+)=/ && exists($opt{$1}));
21 print;
22 }
23