summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-08-27 09:34:44 +0300
committerJanne Anttila <janne.anttila@digia.com>2009-08-27 09:34:44 +0300
commit7f08c316c4accf21c37ba75b299ca3504cb1a2ec (patch)
treeababd1f4f9cd32dedcc136ad9b63ceebb7fb7d76 /bin
parentc2bfd3a4e13515bc9507250a71e2f04612d78a04 (diff)
Fixed createpackage.bat params to be more consistent with make targets.
Createpackage.bat now accepts also release/debug instead of urel/udeb. Also the order is swicthed so that now you need to call: >createpackage.bat [-i] pkgfile release armv5 [certificate key [passphrase]] instead of >createpackage.bat [-i] pkgfile armv5 urel [certificate key [passphrase]] RevBy: Miikka Heikkinen
Diffstat (limited to 'bin')
-rw-r--r--bin/createpackage.pl15
1 files changed, 11 insertions, 4 deletions
diff --git a/bin/createpackage.pl b/bin/createpackage.pl
index 8501174777..856f318a3c 100644
--- a/bin/createpackage.pl
+++ b/bin/createpackage.pl
@@ -25,9 +25,9 @@ sub Usage() {
print "Where parameters are as follows:\n";
print " [-i|install] = Install the package right away using PC suite\n";
print " templatepkg = Name of .pkg file template\n";
+ print " target = Either debug|udeb or release|urel\n";
print " platform = One of the supported platform\n";
- print " GCCE | ARMV5 | ARMV6 | ARMV7\n";
- print " target = Either UDEB or UREL\n";
+ print " winscw | gcce | armv5 | armv6 | armv7\n";
print " certificate = The certificate file used for signing\n";
print " key = The certificate's private key file\n";
print " passphrase = The certificate's private key file's passphrase\n";
@@ -47,8 +47,15 @@ unless (GetOptions('i|install' => \$install)){
# Read params to variables
my $templatepkg = $ARGV[0];
-my $platform = uc $ARGV[1];
-my $target = uc $ARGV[2];
+my $target = uc $ARGV[1];
+my $platform = uc $ARGV[2];
+
+# Make sure target contains only urel/udeb.
+# i.e. convert possible given debug->udeb and release->urel
+$target =~ s/debug/udeb/i;
+$target =~ s/release/urel/i;
+
+# Make sure visual target contains only release/debug
my $visualtarget = $target;
$visualtarget =~ s/udeb/debug/i;
$visualtarget =~ s/urel/release/i;