From 73047c5d9c65346a52a6c16364b872fee96e1023 Mon Sep 17 00:00:00 2001 From: "sandeep.konchady%sun.com" Date: Wed, 18 May 2005 22:18:15 +0000 Subject: [PATCH] Modified the way MANIFEST.MF file was being generated. I now use perl to open a file and write to it instead of execing a system command. This is in response to build failure when rsh to a Windows machine. --- security/jss/build_java.pl | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/security/jss/build_java.pl b/security/jss/build_java.pl index dc86df8050b7..5f830696e424 100644 --- a/security/jss/build_java.pl +++ b/security/jss/build_java.pl @@ -167,15 +167,29 @@ sub build { chop($jss_revision); $jss_revision = substr($jss_revision, 22, 3); my $build_revision = $jss_revision; - system("echo \"Manifest-Version: 1.0\" > $manifest_file"); - system("echo \"\" >> $manifest_file"); - system("echo \"Name: org/mozilla/jss/\" >> $manifest_file"); - system("echo \"Specification-Title: Network Security Services for Java (JSS)\" >> $manifest_file"); - system("echo \"Specification-Version: $jss_revision\" >> $manifest_file"); - system("echo \"Specification-Vendor: Mozilla Foundation\" >> $manifest_file"); - system("echo \"Implementation-Title: org.mozilla.jss\" >> $manifest_file"); - system("echo \"Implementation-Version: $build_revision\" >> $manifest_file"); - system("echo \"Implementation-Vendor: Mozilla Foundation\" >> $manifest_file"); + $append = 0; + + if ($append) { + open(MYOUTFILE, ">MANIFEST.MF"); #open for write, overwrite + } else { + open(MYOUTFILE, ">>MANIFEST.MF"); #open for write, append + } + + #*** Print freeform text, semicol required *** +print MYOUTFILE <<"MyLabel"; +Manifest-Version: 1.0 + +Name: org/mozilla/jss/ +Specification-Title: Network Security Services for Java (JSS) +Specification-Version: $jss_revision +Specification-Vendor: Mozilla Foundation +Implementation-Title: org.mozilla.jss +Implementation-Version: $build_revision +Implementation-Vendor: Mozilla Foundation +MyLabel + + #*** Close the file *** + close(MYOUTFILE); # # recursively find *.java