line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Revision History: |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# 26-Nov-2002 Dick Munroe (munroe@csworks.com) |
6
|
|
|
|
|
|
|
# Initial Version Created. |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# 18-May-2003 Dick Munroe (munroe@csworks.com) |
9
|
|
|
|
|
|
|
# Make sure package variables can't leak. |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# 19-May-2003 Dick Munroe (munroe@csworks.com) |
12
|
|
|
|
|
|
|
# Use Carp. |
13
|
|
|
|
|
|
|
# Isolate kif related classes in a KIF namespace. |
14
|
|
|
|
|
|
|
# |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
package KIF::Build::ppc ; |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
|
486
|
use vars qw($VERSION @ISA) ; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
59
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
our $VERSION = "1.03" ; |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
|
6
|
use strict ; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
5
|
use Carp ; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
62
|
|
25
|
1
|
|
|
1
|
|
6
|
use File::Copy ; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
37
|
|
26
|
1
|
|
|
1
|
|
4
|
use KIF::Build ; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
22
|
|
27
|
1
|
|
|
1
|
|
4
|
use KIF::Bootloader ; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
161
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
our @ISA = qw(KIF::Build) ; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub new |
32
|
|
|
|
|
|
|
{ |
33
|
0
|
|
|
0
|
0
|
|
my $thePackage = shift ; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my $theObject = $thePackage->SUPER::new(@_) ; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
$theObject->bootloader(new KIF::Bootloader) ; |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
|
|
|
return $theObject ; |
40
|
|
|
|
|
|
|
} ; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub validate |
43
|
|
|
|
|
|
|
{ |
44
|
0
|
|
|
0
|
0
|
|
my $theObject = shift ; |
45
|
|
|
|
|
|
|
|
46
|
0
|
0
|
|
|
|
|
croak '/boot/vmlinux must exist.' if (!-e '/boot/vmlinux') ; |
47
|
|
|
|
|
|
|
|
48
|
0
|
0
|
|
|
|
|
croak '/boot/vmlinux must be a link.' if (!-l '/boot/vmlinux') ; |
49
|
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
$theObject->SUPER::validate() ; |
51
|
|
|
|
|
|
|
} ; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub doBootloader |
54
|
|
|
|
|
|
|
{ |
55
|
0
|
|
|
0
|
0
|
|
my $theObject = shift ; |
56
|
0
|
|
|
|
|
|
my $theReleaseTag = $theObject->releaseTag() ; |
57
|
|
|
|
|
|
|
|
58
|
0
|
|
|
|
|
|
$theObject->run('echo \'Copy /boot/vmlinux-$theReleaseTag to the Mac OS for use by BootX\'') ; |
59
|
|
|
|
|
|
|
} ; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |