Changeset 874 in ProjectBuilder
- Timestamp:
- Oct 21, 2009, 8:22:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r873 r874 1041 1041 chdir "$pbpkg-$pbver" || die "Unable to chdir to $pbpkg-$pbver"; 1042 1042 symlink "pbconf/$ddir-$dver-$arch","install" || die "Unable to symlink to pbconf/$ddir-$dver-$arch"; 1043 if (-x "install/pbbuild") { 1043 if (-f "install/pbbuild") { 1044 chmod 0755,"install/pbbuild"; 1044 1045 # pkginfo file is mandatory 1045 1046 die "Unable to find pkginfo file in pbconf/$ddir-$dver-$arch" if (! -f "install/pkginfo"); … … 1047 1048 pb_system("install/pbbuild $pkgdestdir","Building software"); 1048 1049 # Copy complementary files 1049 if (-f "install/ prototype") {1050 copy("install/ prototype", $pkgdestdir)1050 if (-f "install/Prototype") { 1051 copy("install/Prototype", $pkgdestdir) 1051 1052 } else { 1052 1053 # No prototype provided, calculating it 1053 open(PROTO,"> install/prototype") || die "Unable to create prototype file";1054 open(PROTO,"> $pkgdestdir/Prototype") || die "Unable to create Prototype file"; 1054 1055 print PROTO "i pkginfo\n"; 1055 1056 print PROTO "i depend\n" if (-f "install/depend"); … … 1059 1060 copy("install/pkginfo", $pkgdestdir); 1060 1061 pb_system("pkgmk -o -r $pkgdestdir -d $ENV{'PBBUILDDIR'}/$dtype","Packaging $pbpkg","verbose"); 1061 pb_system("pkgtrans -s $ENV{'PBBUILDDIR'}/$dtype $pbpkg-$pbver.pkg $pbpkg","Transformaing $pbpkg","verbose"); 1062 pb_system("rm -rf $ENV{'PBBUILDDIR'}/$dtype"); 1063 } 1062 pb_system("pkgtrans -s $ENV{'PBBUILDDIR'}/$dtype $pbpkg-$pbver.pkg $pbpkg","Transforming $pbpkg","verbose"); 1063 pb_system("rm -rf $ENV{'PBBUILDDIR'}/$dtype $pkgdestdir/install"); 1064 } 1065 chdir ".." || die "Unable to chdir to parent dir"; 1066 pb_system("rm -rf $pbpkg-$pbver"); 1064 1067 } else { 1065 1068 die "Unknown dtype format $dtype"; … … 1094 1097 } 1095 1098 1096 sub create_solaris_prot ype {1099 sub create_solaris_prototype { 1097 1100 1098 1101 my $uidgid = "bin bin"; 1099 1102 1100 print PROTO "d none $ _0755 $uidgid\n" if (-d $_);1103 print PROTO "d none $File::Find::name 0755 $uidgid\n" if (-d $_); 1101 1104 if (-x $_) { 1102 print PROTO "f none $ _0755 $uidgid\n";1105 print PROTO "f none $File::Find::name 0755 $uidgid\n"; 1103 1106 } elsif (-f $_) { 1104 print PROTO "f none $ _0644 $uidgid\n" if (-f $_);1107 print PROTO "f none $File::Find::name 0644 $uidgid\n" if (-f $_); 1105 1108 } 1106 1109 }
Note:
See TracChangeset
for help on using the changeset viewer.