summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicolson%netscape.com <devnull@localhost>2001-06-27 00:28:56 +0000
committernicolson%netscape.com <devnull@localhost>2001-06-27 00:28:56 +0000
commita2be003cf08a8868c5e4b1b111f6430644e16ae5 (patch)
treebf6df25aacba61be39b7739b2fc7b9b00a34b602
parentfdc75c70b8cb8045db5736bbb6dd5f3ea7f926cb (diff)
downloadnss-hg-a2be003cf08a8868c5e4b1b111f6430644e16ae5.tar.gz
Windows doesn't understand single quotes, so it fudges the command.
-rwxr-xr-xsecurity/coreconf/jniregen.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/coreconf/jniregen.pl b/security/coreconf/jniregen.pl
index 05774cff7..8bdd24448 100755
--- a/security/coreconf/jniregen.pl
+++ b/security/coreconf/jniregen.pl
@@ -99,8 +99,9 @@ foreach $filename (@ARGV)
if( @filelist ) {
$cmd = "$javah " . join(" ",@filelist);
+ $cmd =~ s/\'/\"/g; # because windows doesn't understand single quote
print "$cmd\n";
- system("$cmd");
+ exit (system($cmd) >> 8);
} else {
print "All JNI header files up to date.\n"
}