Skip to content

Commit

Permalink
Trivial fixes for trailing spaces etc
Browse files Browse the repository at this point in the history
Reviewed-by: TrustMe
  • Loading branch information
Janne Anttila committed Aug 31, 2009
1 parent a44892b commit 5fb6cdf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/patch_capabilities.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ()
print("If no capabilities are given, the binaries will be given the\n");
print("capabilities supported by self-signed certificates.\n");
print("\nUsage: patch_capabilities.pl pkg_filename [target-platform] [capability list]\n");
print(" If template .pkg file is given, next agrument must be 'target-platform'.\n");
print(" If template .pkg file is given, next agrument must be 'target-platform'.\n");
print("\nE.g. patch_capabilities.pl myapp_template.pkg release-armv5 \"All -TCB\"\n");
exit();
}
Expand All @@ -27,15 +27,15 @@ ()
my $pkgFileName = shift(@ARGV);

# Check if using template .pkg and do preprocessing if needed
if (($pkgFileName =~ m|_template\.pkg$|i) && -r($pkgFileName))
if (($pkgFileName =~ m|_template\.pkg$|i) && -r($pkgFileName))
{
my $target;
unless ($target = shift(@ARGV))
unless ($target = shift(@ARGV))
{
Usage();
}
system ("createpackage.bat -p ".$pkgFileName." ".$target);

system ("createpackage.bat -p ".$pkgFileName." ".$target);
$pkgFileName =~ s/_template\.pkg/_${target}\.pkg/;
}

Expand Down

0 comments on commit 5fb6cdf

Please sign in to comment.