- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/bin/createpackage.pl
r651 r769 55 55 # Use File::Spec services mainly rel2abs 56 56 use File::Spec; 57 58 57 59 # use CWD abs_bath, which is exported only on request 58 60 use Cwd 'abs_path'; … … 112 114 my $certfile = ""; 113 115 my $preserveUnsigned = ""; 116 114 117 115 118 unless (GetOptions('i|install' => \$install, 116 119 'p|preprocess' => \$preprocessonly, 117 120 'c|certfile=s' => \$certfile, 118 'u|unsigned' => \$preserveUnsigned,)){ 121 'u|unsigned' => \$preserveUnsigned, 122 's|stub' => \$stub,)){ 119 123 Usage(); 120 124 } … … 154 158 my $unsigned_sis_name = $sisoutputbasename."_unsigned.sis"; 155 159 my $signed_sis_name = $sisoutputbasename.".sis"; 160 156 161 157 162 # Store some utility variables … … 257 262 } 258 263 259 # Create SIS. 260 system ("makesis $pkgoutput $unsigned_sis_name"); 261 262 # Sign SIS with certificate info given as an argument. 263 system ("signsis $unsigned_sis_name $signed_sis_name $certificate $key $passphrase"); 264 265 # Check if creating signed SIS Succeeded 266 stat($signed_sis_name); 267 if( -e _ ) { 268 my $targetInsert = ""; 269 if ($targetplatform ne "-") { 270 $targetInsert = "for $targetplatform "; 271 } 272 print ("\nSuccessfully created $signed_sis_name ${targetInsert}using certificate: $certtext!\n"); 273 274 # Sign with additional certificates & keys 275 for my $row ( @certificates ) { 276 # Get certificate absolute file names, relative paths are relative to certfilepath 277 my $abscert = File::Spec->rel2abs( $row->[0], $certfilepath); 278 my $abskey = File::Spec->rel2abs( $row->[1], $certfilepath); 279 280 system ("signsis $signed_sis_name $signed_sis_name $abscert $abskey $row->[2]"); 281 print ("\tAdditionally signed the SIS with certificate: $row->[0]!\n"); 282 } 283 284 # remove temporary pkg and unsigned sis 285 if (!$preservePkgOutput) { 286 unlink $pkgoutput; 287 } 288 if (!$preserveUnsigned) { 289 unlink $unsigned_sis_name; 290 } 291 292 # Install the sis if requested 293 if ($install) { 294 print ("\nInstalling $signed_sis_name...\n"); 295 system ("$signed_sis_name"); 296 } 264 if($stub) { 265 if(!($ENV{EPOCROOT})) { die("EPOCROOT must be set to create stub sis files"); } 266 my $systeminstall = "$ENV{EPOCROOT}epoc32/data/z/system/install"; 267 mkpath($systeminstall); 268 my $stub_sis_name = $systeminstall."/".$stub_sis_name; 269 # Create stub SIS. 270 system ("makesis -s $pkgoutput $stub_sis_name"); 297 271 } else { 298 # Lets leave the generated PKG for problem solving purposes 299 print ("\nSIS creation failed!\n"); 300 } 301 272 # Create SIS. 273 system ("makesis $pkgoutput $unsigned_sis_name"); 274 print("\n"); 275 276 # Sign SIS with certificate info given as an argument. 277 system ("signsis $unsigned_sis_name $signed_sis_name $certificate $key $passphrase"); 278 279 # Check if creating signed SIS Succeeded 280 stat($signed_sis_name); 281 if( -e _ ) { 282 my $targetInsert = ""; 283 if ($targetplatform ne "-") { 284 $targetInsert = "for $targetplatform "; 285 } 286 print ("Successfully created $signed_sis_name ${targetInsert}using certificate: $certtext!\n"); 287 288 # Sign with additional certificates & keys 289 for my $row ( @certificates ) { 290 # Get certificate absolute file names, relative paths are relative to certfilepath 291 my $abscert = File::Spec->rel2abs( $row->[0], $certfilepath); 292 my $abskey = File::Spec->rel2abs( $row->[1], $certfilepath); 293 294 system ("signsis $signed_sis_name $signed_sis_name $abscert $abskey $row->[2]"); 295 print ("\tAdditionally signed the SIS with certificate: $row->[0]!\n"); 296 } 297 298 # remove temporary pkg and unsigned sis 299 if (!$preservePkgOutput) { 300 unlink $pkgoutput; 301 } 302 if (!$preserveUnsigned) { 303 unlink $unsigned_sis_name; 304 } 305 306 # Install the sis if requested 307 if ($install) { 308 print ("\nInstalling $signed_sis_name...\n"); 309 system ("$signed_sis_name"); 310 } 311 } else { 312 # Lets leave the generated PKG for problem solving purposes 313 print ("\nSIS creation failed!\n"); 314 } 315 } 302 316 303 317 #end of file -
trunk/bin/syncqt
r651 r769 195 195 } elsif(basename($iheader) eq "qtconcurrentrun.h") { 196 196 push @ret, "QtConcurrentRun" 197 198 197 199 } 198 200
Note:
See TracChangeset
for help on using the changeset viewer.