summaryrefslogtreecommitdiffstats
path: root/bin/createpackage.pl
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2010-02-19 13:56:21 +0100
committeraxis <qt-info@nokia.com>2010-02-19 13:56:21 +0100
commit16f251a89cc4ce70eb870cfd97d9befaa19954bd (patch)
tree2260b44ecef8b733a57e54fe1ea7eea8346174d8 /bin/createpackage.pl
parent9d818ceb4765474c22d624ee5bdb11019f15a23f (diff)
Changed createpackage script to use relative paths.
This was done in order to support signsis on Linux, where relative paths are required.
Diffstat (limited to 'bin/createpackage.pl')
-rwxr-xr-xbin/createpackage.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/createpackage.pl b/bin/createpackage.pl
index 10f4b40fa7..0662ad02c9 100755
--- a/bin/createpackage.pl
+++ b/bin/createpackage.pl
@@ -277,7 +277,9 @@ if($stub) {
print("\n");
# Sign SIS with certificate info given as an argument.
- system ("signsis $unsigned_sis_name $signed_sis_name $certificate $key $passphrase");
+ my $relcert = File::Spec->abs2rel($certificate);
+ my $relkey = File::Spec->abs2rel($key);
+ system ("signsis $unsigned_sis_name $signed_sis_name $relcert $relkey $passphrase");
# Check if creating signed SIS Succeeded
stat($signed_sis_name);
@@ -291,10 +293,10 @@ if($stub) {
# Sign with additional certificates & keys
for my $row ( @certificates ) {
# Get certificate absolute file names, relative paths are relative to certfilepath
- my $abscert = File::Spec->rel2abs( $row->[0], $certfilepath);
- my $abskey = File::Spec->rel2abs( $row->[1], $certfilepath);
+ my $relcert = File::Spec->abs2rel(File::Spec->rel2abs( $row->[0], $certfilepath));
+ my $relkey = File::Spec->abs2rel(File::Spec->rel2abs( $row->[1], $certfilepath));
- system ("signsis $signed_sis_name $signed_sis_name $abscert $abskey $row->[2]");
+ system ("signsis $signed_sis_name $signed_sis_name $relcert $relkey $row->[2]");
print ("\tAdditionally signed the SIS with certificate: $row->[0]!\n");
}