pkgApp.pl   pkgApp.pl 
skipping to change at line 16 skipping to change at line 16
my $inmt = "/usr/bin/install_name_tool"; my $inmt = "/usr/bin/install_name_tool";
my $ch_inmt = qq{$inmt -change \%s \%s \%s}; my $ch_inmt = qq{$inmt -change \%s \%s \%s};
my $id_inmt = qq{$inmt -id \%s \%s}; my $id_inmt = qq{$inmt -id \%s \%s};
my $otool = qq{/usr/bin/otool -L \%s}; my $otool = qq{/usr/bin/otool -L \%s};
my $appdir = shift(@ARGV); my $appdir = shift(@ARGV);
chdir $appdir; chdir $appdir;
my $main_executable = shift(@ARGV); my $main_executable = shift(@ARGV);
my $frameworks_dir = shift(@ARGV); my $frameworks_dir = shift(@ARGV);
my $current_arch = `/usr/bin/arch`; my $current_arch = `/usr/bin/uname -m`;
chomp($current_arch); chomp($current_arch);
if ( ! -e "$frameworks_dir/$current_arch" ) { if ( ! -e "$frameworks_dir/$current_arch" ) {
`mkdir -p $frameworks_dir/$current_arch`; `mkdir -p $frameworks_dir/$current_arch`;
} }
&recurse( $main_executable, $frameworks_dir, $current_arch ); &recurse( $main_executable, $frameworks_dir, $current_arch );
sub recurse { sub recurse {
my($main_executable, $frameworks_dir, $current_arch) = @_; my($main_executable, $frameworks_dir, $current_arch) = @_;
skipping to change at line 215 skipping to change at line 215
if ( grep(m/(universal binary|fat file) with [0-9] architectures/i, @ou tput)) { if ( grep(m/(universal binary|fat file) with [0-9] architectures/i, @ou tput)) {
$retval = 'fat'; $retval = 'fat';
} }
elsif ( grep(m/ppc/, @output) ) { elsif ( grep(m/ppc/, @output) ) {
$retval = 'ppc'; $retval = 'ppc';
} }
elsif ( grep(m/i386/, @output) ) { elsif ( grep(m/i386/, @output) ) {
$retval = 'i386'; $retval = 'i386';
} }
elsif ( grep(m/x86_64/, @output) ) {
$retval = 'x86_64';
}
# warn qq{$0: $file isa '$retval' arch\n}; # warn qq{$0: $file isa '$retval' arch\n};
return $retval; return $retval;
} }
sub locateFramework { sub locateFramework {
my $fname = shift; my $fname = shift;
my $lib; my $lib;
foreach $lib ( '~/Library/Frameworks', '/Library/Frameworks', '/usr/loc al/Trolltech/Qt-4.7.1/lib' ) { foreach $lib ( '~/Library/Frameworks', '/Library/Frameworks', '/usr/loc al/Trolltech/Qt-4.7.1/lib' ) {
if ( -e "$lib/$fname" ) { if ( -e "$lib/$fname" ) {
return "$lib/$fname"; return "$lib/$fname";
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/