Browse Source

Make bundled jdk working (I misread the path: _jvm is the name that netbeans auto-appends, so it must not be under any directory).
Also whilst 7zip knows ./folder/*, you have to use cd with other zips...

MeFisto94 9 years ago
parent
commit
8ab593900f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      jdks/download-jdks.sh

+ 3 - 3
jdks/download-jdks.sh

@@ -227,9 +227,9 @@ function compile_other {
     fi
 
     echo "> Zipping JDK"
-    mv $1-$3 _jvm
-    zip -9 -qry jdk_tmp_sfx.zip _jvm
-    mv _jvm $1-$3
+    cd $1-$3 # zip behaves differently between 7zip and Info-Zip, so simply change wd
+    zip -9 -qry ../jdk_tmp_sfx.zip *
+    cd ../
     echo "> Building SFX"
     cat $unzipsfxname jdk_tmp_sfx.zip > compiled/$name
     chmod +x compiled/$name