|
5 | 5 | <!--echo message="os.version = ${os.version}" /--> |
6 | 6 |
|
7 | 7 | <!-- Sets properties for macosx/windows/linux depending on current system --> |
8 | | - <condition property="platform" value="macosx"><os family="mac" /></condition> |
9 | | - <condition property="platform" value="oldmacosx"> |
| 8 | + <condition property="platform" value="macosxnew"><os family="mac" /></condition> |
| 9 | + <condition property="platform" value="macosx"> |
10 | 10 | <and> |
11 | 11 | <os family="mac" /> |
12 | 12 | <matches string="${os.version}" pattern="^10.[56]." /> |
|
17 | 17 | <condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition> |
18 | 18 |
|
19 | 19 | <condition property="macosx"><equals arg1="${platform}" arg2="macosx" /></condition> |
20 | | - <condition property="macosx"><equals arg1="${platform}" arg2="oldmacosx" /></condition> |
21 | | - <condition property="oldmacosx"><equals arg1="${platform}" arg2="oldmacosx" /></condition> |
| 20 | + <condition property="macosx"><equals arg1="${platform}" arg2="macosxnew" /></condition> |
| 21 | + <condition property="macosxnew"><equals arg1="${platform}" arg2="macosxnew" /></condition> |
22 | 22 | <condition property="windows"><equals arg1="${platform}" arg2="windows" /></condition> |
23 | 23 | <condition property="linux32"><equals arg1="${platform}" arg2="linux32" /></condition> |
24 | 24 | <condition property="linux64"><equals arg1="${platform}" arg2="linux64" /></condition> |
25 | 25 | <condition property="linux"><equals arg1="${platform}" arg2="linux32" /></condition> |
26 | 26 | <condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition> |
27 | 27 |
|
| 28 | + <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosxnew" /></condition> |
28 | 29 | <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition> |
29 | | - <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="oldmacosx" /></condition> |
30 | 30 | <condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition> |
31 | 31 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition> |
32 | 32 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition> |
33 | 33 |
|
34 | | - <condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition> |
35 | | - <condition property="staging_hardware_folder" value="Arduino.app/Contents/Resources/Java/hardware"><equals arg1="${platform}" arg2="oldmacosx" /></condition> |
| 34 | + <condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosxnew" /></condition> |
| 35 | + <condition property="staging_hardware_folder" value="Arduino.app/Contents/Resources/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition> |
36 | 36 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition> |
37 | 37 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition> |
38 | 38 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition> |
|
190 | 190 | <!-- Mac OS X --> |
191 | 191 | <!-- - - - - - - - --> |
192 | 192 |
|
193 | | - <target name="oldmacosx-clean" depends="macosx-clean" description="Clean Mac OS X build"/> |
| 193 | + <target name="macosxnew-clean" depends="macosx-clean" description="Clean Mac OS X build"/> |
194 | 194 |
|
195 | 195 | <target name="macosx-clean" depends="subprojects-clean" description="Clean Mac OS X build"> |
196 | 196 | <delete dir="macosx/work" /> |
|
213 | 213 | <fail message="wrong platform (${os.name})" /> |
214 | 214 | </target> |
215 | 215 |
|
216 | | - <target name="oldmacosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version"> |
| 216 | + <target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version"> |
217 | 217 | <mkdir dir="macosx/work" /> |
218 | 218 |
|
219 | 219 | <!-- assemble the pde --> |
|
241 | 241 |
|
242 | 242 | </target> |
243 | 243 |
|
244 | | - <target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version"> |
| 244 | + <target name="macosxnew-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version"> |
245 | 245 | <antcall target="unzip"> |
246 | 246 | <param name="archive_file" value="${staging_folder}/appbundler-1.0ea.jar.zip" /> |
247 | 247 | <param name="archive_url" value="http://arduino.cc/download.php?f=/appbundler-1.0ea.jar.zip" /> |
|
369 | 369 |
|
370 | 370 | </target> |
371 | 371 |
|
372 | | - <target name="oldmacosx-run" depends="oldmacosx-build" description="Run Mac OS X version"> |
| 372 | + <target name="macosx-run" depends="macosx-build" description="Run Mac OS X version"> |
373 | 373 | <antcall target="macosx-run-common"/> |
374 | 374 | </target> |
375 | 375 |
|
376 | | - <target name="macosx-run" depends="macosx-build" description="Run Mac OS X version"> |
| 376 | + <target name="macosxnew-run" depends="macosxnew-build" description="Run Mac OS X version"> |
377 | 377 | <antcall target="macosx-run-common"/> |
378 | 378 | </target> |
379 | 379 |
|
380 | | - <target name="oldmacosx-debug" depends="oldmacosx-build" description="Run Mac OS X version"> |
| 380 | + <target name="macosx-debug" depends="macosx-build" description="Run Mac OS X version"> |
381 | 381 | <antcall target="macosx-debug-common"/> |
382 | 382 | </target> |
383 | 383 |
|
384 | | - <target name="macosx-debug" depends="macosx-build" description="Run Mac OS X version"> |
| 384 | + <target name="macosxnew-debug" depends="macosxnew-build" description="Run Mac OS X version"> |
385 | 385 | <antcall target="macosx-debug-common"/> |
386 | 386 | </target> |
387 | 387 |
|
|
452 | 452 | <!-- - - - - - - - - - - - - - - - - - - --> |
453 | 453 | <!-- Build distribution file for MacOSX. --> |
454 | 454 | <!-- - - - - - - - - - - - - - - - - - - --> |
455 | | - <target name="oldmacosx-dist" if="macosx" depends="oldmacosx-build" description="Create a downloadable .zip for the Mac OS X version"> |
456 | | - <antcall target="macosx-dist-common"> |
457 | | - <param name="custom_platform" value="macosx"/> |
458 | | - </antcall> |
| 455 | + <target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version"> |
| 456 | + <antcall target="macosx-dist-common"/> |
459 | 457 | </target> |
460 | 458 |
|
461 | | - <target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version"> |
462 | | - <antcall target="macosx-dist-common"> |
463 | | - <param name="custom_platform" value="macosx-new"/> |
464 | | - </antcall> |
| 459 | + <target name="macosxnew-dist" if="macosx" depends="macosxnew-build" description="Create a downloadable .zip for the Mac OS X version"> |
| 460 | + <antcall target="macosx-dist-common"/> |
465 | 461 | </target> |
466 | 462 |
|
467 | 463 | <target name="macosx-dist-common"> |
468 | 464 | <exec executable="zip" dir="macosx/work"> |
469 | | - <arg line="-q -r ../arduino-${version}-${custom_platform}.zip ." /> |
| 465 | + <arg line="-q -r ../arduino-${version}-${platform}.zip ." /> |
470 | 466 | </exec> |
471 | 467 |
|
472 | 468 | <echo> |
473 | 469 | ======================================================= |
474 | 470 | Arduino for Mac OS X was built. Grab the image from |
475 | 471 |
|
476 | | - macosx/arduino-${version}-${custom_platform}.zip |
| 472 | + macosx/arduino-${version}-${platform}.zip |
477 | 473 | ======================================================= |
478 | 474 | </echo> |
479 | 475 | </target> |
|
0 commit comments