Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / fix_4_os2.pl
CommitLineData
86530b38
AT
1sub OS2_massage { # Need to put before BEGIN
2 if (@ARGV) {
3 die <<EOD;
4
5Please start me as one of
6 perl $0 x
7 perl $0 open32
8 perl $0 pm
9EOD
10 }
11 if (not defined $win_arch) {
12 $win_arch = 'pm';
13 print STDERR <<EOP;
14
15No Window architecture specified, building for PM.
16
17Please start me as one of
18 perl $0 x
19 perl $0 open32
20 perl $0 pm
21if you want to specify architecture explicitely.
22
23EOP
24 }
25 if ($win_arch ne 'x' and not -r 'pTk/mTk/open32/tkWinOS2.c' ) {
26 print <<EOD;
27
28Cannot find pTk/mTk/open32/tkWinOS2.c, trying to find Tk-OS2src nearby...
29
30EOD
31 my @zips = <../Tk-OS2src-*/perltk_os2_common.zip>;
32
33 die <<EOD unless @zips;
34
35Cannot find ../Tk-OS2src-*/perltk_os2_common.zip, did you read README.os2?
36
37EOD
38 print 'Extracting OS/2-related files...\nunzip', $zips[-1], "\n";
39 system 'unzip', $zips[-1] and die "Unzip: $!";
40 print "Extracted...\n";
41 }
42 if ($win_arch eq 'pm' and not -r 'pTk/mTk/os2/tkOS2Int.h') {
43 print <<EOD unless @zips;
44
45Cannot find pTk/mTk/os2/tkOS2Int.h, trying to find Tk-OS2src nearby...
46
47EOD
48 my @zips = <../Tk-OS2src-*/perltk_os2_pm.zip>;
49
50 die <<EOD unless @zips;
51
52Cannot find ../Tk-OS2src-*/perltk_os2_pm.zip, did you read README.os2?
53
54EOD
55 print 'Extracting OS/2-related files...\nunzip', $zips[-1], "\n";
56 system 'unzip', $zips[-1] and die "Unzip: $!";
57 }
58 $test_perl = 'perl__.exe' if $win_arch ne 'x';
59}
60
611;