summaryrefslogtreecommitdiff
path: root/postprocess/signing
diff options
context:
space:
mode:
Diffstat (limited to 'postprocess/signing')
-rw-r--r--postprocess/signing/signing.pl14
1 files changed, 5 insertions, 9 deletions
diff --git a/postprocess/signing/signing.pl b/postprocess/signing/signing.pl
index 846ac0075793..6f8b26aee2cd 100644
--- a/postprocess/signing/signing.pl
+++ b/postprocess/signing/signing.pl
@@ -47,7 +47,7 @@ if ( $#ARGV < 2 ) {
exit(1);
}
@args = parse_options();
-get_exclude_files();
+get_exclude_files() if ($opt_exclude != "");
@files_to_sign = get_files(\@args);
if ( $opt_log ) { # logging
open(LOG,">$opt_log") || die "Can't open log file $opt_log\n";
@@ -78,11 +78,6 @@ sub parse_options #09.07.2007 08:13
usage();
exit(1);
}
- if ( !$opt_exclude || !$opt_pfxfile || !$opt_pass || !$opt_timestamp_url) {
- print "ERROR: Parameter missing!\n!";
- usage();
- exit(1);
- }
return @ARGV;
} ##parse_options
@@ -142,8 +137,6 @@ sub sign_files #09.07.2007 10:36
my $file = "";
my $result = "";
- print_error("Can't open PFX file: $opt_pfxfile\n") if ( ! -e $opt_pfxfile );
- print_error("Password is empty\n") if ( !$opt_pass );
if ( $opt_pass =~ /\.exe$/ ) {
# get password by tool
open(PIPE, "$opt_pass 2>&1 |") || die "Can't open PIPE!\n";
@@ -153,7 +146,10 @@ sub sign_files #09.07.2007 10:36
$opt_pass = $pass;
}
$signtool .= " -v" if ($opt_verbose);
- $commandline_base = $signtool . " " . "-f $opt_pfxfile -p $opt_pass -t $opt_timestamp_url";
+ $commandline_base = $signtool;
+ $commandline_base .= " -f $opt_pfxfile" if ($opt_pfxfile != "");
+ $commandline_base .= " -p $opt_pass" if ($opt_pass != "");
+ $commandline_base .= " -t $opt_timestamp_url" if ($opt_timestamp_url != "");
# Here switch between:
# one command line for muliple files (all doesn't work, too much) / for each file one command line