Changeset 19938
- Timestamp:
- 2009-06-26T18:02:44+12:00 (15 years ago)
- Location:
- release-kits
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk2/ant-scripts/create-cdrom-components.xml
r19795 r19938 52 52 <!-- jre --> 53 53 <mkdir dir="cdrom/dist/Java/Linux"/> 54 <copy file="${lirk2.home}/linux/jre_bin" todir="cdrom/dist/Java/Linux"/> 54 <exec executable="cp"> 55 <arg value="${lirk2.home}/linux/jre_bin"/> 56 <arg value="cdrom/dist/Java/Linux"/> 57 </exec> 55 58 <!-- 56 59 <exec dir="cdrom/dist/Java/Linux" executable="${lirk2.home}/linux/jre_bin"/> -
release-kits/lirk2/installer/build.xml
r19624 r19938 19 19 20 20 <condition property="bundled.java.exists"> 21 <or> 22 <available file="../@linux-java.extracted@/bin/java"/> 23 <available file="${orig.dir}/Java/Linux/jre"/> 24 </or> 21 <available file="../@linux-java.extracted@/bin/java"/> 25 22 </condition> 26 23 27 24 <target name="Initialising" if="bundled.java.exists"> 28 25 <mkdir dir="${installDir}/packages"/> 29 <!-- start web -->30 26 <copy todir="${installDir}/packages/jre" failonerror="false"> 31 27 <fileset dir="../@linux-java.extracted@"/> 32 28 </copy> 33 <!-- end web -->34 35 <!-- start cdrom -->36 <copy todir="${installDir}/packages/jre" failonerror="false">37 <fileset dir="${orig.dir}/Java/Linux/jre"/>38 </copy>39 <!-- end cdrom -->40 41 29 <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/> 42 30 </target> -
release-kits/lirk3/ant-scripts/wrap.xml
r19008 r19938 28 28 29 29 <target name="compile-wrapper"> 30 <mkdir dir="products"/> 30 31 <echo level="info">create an object file (extension .o) for each file to bundle</echo> 31 32 <exec executable="/usr/bin/objcopy" dir="${basedir}/wrapped-installer/build"> -
release-kits/mark2/ant-scripts/create-cdrom-components.xml
r19776 r19938 38 38 39 39 <!-- delete the httpd manual to save space --> 40 <delete dir="cdrom/dist/Software/core/ linux/apache-httpd/darwin/manual"/>40 <delete dir="cdrom/dist/Software/core/mac/apache-httpd/darwin/manual"/> 41 41 42 42 <!-- imagemagick --> -
release-kits/mark2/installer/antinstall-config.xml
r19790 r19938 28 28 <!-- start binary release --> 29 29 <page type="input" name="intro" displayText=""> 30 <comment name="welcome -message"/>30 <comment name="welcome"/> 31 31 </page> 32 32 <!-- end binary release --> -
release-kits/shared/linux/wrapper.cpp
r19767 r19938 12 12 bool extract_bundled_file( const char[], int, char*, bool ); 13 13 #else 14 string get_full_java( string wd );14 bool prep_java( string wd ); 15 15 #endif 16 16 … … 178 178 } 179 179 #else 180 string java_executable = get_full_java( wd );181 if ( java_ executable != "") {182 string cmd = java_executable + "-Dorig.dir=\"" + wd + "\" -jar " + wd + "/Java/Jars/linux.jar" + (text_mode?" text":"");180 bool java_ready = prep_java( wd ); 181 if ( java_ready ) { 182 string cmd = "./jre/bin/java -Dorig.dir=\"" + wd + "\" -jar " + wd + "/Java/Jars/linux.jar" + (text_mode?" text":""); 183 183 system( cmd.c_str() ); 184 184 } … … 234 234 #else 235 235 236 string get_full_java( string wd ) { 237 string full_java = ""; 238 239 string cdrom_java = "/Java/Linux/jre/bin/java"; 240 241 full_java = wd + cdrom_java; 242 243 string j1cmd = "\""+full_java+"\" -version >/dev/null 2>&1"; 236 bool prep_java( string wd ) { 237 238 239 string jTestCmd = "./jre/bin/java -version >/dev/null 2>&1"; 240 241 //try to extract straight off cd 242 string j1cmd = wd + "/Java/Linux/jre_bin && tar -xf jre.tar && " + jTestCmd; 244 243 int j1status = system(j1cmd.c_str()); 244 system("/bin/rm -f jre.tar"); 245 245 246 246 if (WEXITSTATUS(j1status)!=0) { 247 cerr << "Unable to run Java executable fromCD-ROM." << endl;247 cerr << "Unable to extract java straight off CD-ROM." << endl; 248 248 cerr << "This is probably because your CD-ROM was mounted with 'noexec'." << endl; 249 249 cerr << "It can be changed by a system administrator" << endl << endl; … … 251 251 252 252 string cdtar_home = wd + "/Java/Linux/"; 253 string tcmd = "(cd \"" + cdtar_home + "\" ; tar cf - jre )";253 string tcmd = "(cd \"" + cdtar_home + "\" ; tar cf - jre_bin )"; 254 254 tcmd += "| tar xvf - "; 255 tcmd += "| awk 'BEGIN{C=0}{C++; printf(\".\"); if (C%70==0) printf(\"\\n\");}END{printf(\"\\n\")}'";255 //tcmd += "| awk 'BEGIN{C=0}{C++; printf(\".\"); if (C%70==0) printf(\"\\n\");}END{printf(\"\\n\")}'"; 256 256 257 257 int tstatus = system(tcmd.c_str()); … … 262 262 } 263 263 else { 264 full_java = "./jre/bin/java"; 265 string j2cmd = full_java +" -version >/dev/null 2>&1"; 266 264 265 string j2cmd = "./jre_bin && tar -xf jre.tar && " + jTestCmd; 267 266 int j2status = system(j2cmd.c_str()); 268 269 if (WEXITSTATUS(j2status)!=0) { 270 cerr << "Unable to run copied Java" << endl; 271 system("/bin/rm -rf jre");272 return "";273 267 system("/bin/rm -f jre.tar jre_bin"); 268 269 if (WEXITSTATUS(j2status)!=0) { 270 cerr << "Unable to run copied Java" << endl; 271 return false; 272 } 274 273 } 275 274 } … … 277 276 // to get to here, full_java must be set (and working) 278 277 279 return full_java;278 return true; 280 279 } 281 280
Note:
See TracChangeset
for help on using the changeset viewer.