Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 662 lines (528 sloc) 23.151 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661
<?xml version="1.0"?>
<project name="mpide" default="build">
  <!--echo message="os.name = ${os.name}" /-->
  <!--echo message="os.arch = ${os.arch}" /-->
  <!--echo message="os.version = ${os.version}" /-->
  <!-- Sets properties for macosx/windows/linux depending on current system -->

 <condition property="macosx"><os family="mac" /></condition>
  <condition property="windows"><os family="windows" /></condition>
  <condition property="linux"><os family="unix" /></condition>
  <condition property="linux64"><os family="unix" arch="amd64" /></condition>

  <condition property="platform"
   value="macosx"><os family="mac" /></condition>
  <condition property="platform"
    value="windows"><os family="windows" /></condition>
  <condition property="platform"
     value="linux"><os family="unix" arch="i386" /></condition>
  <condition property="platform"
     value="linux64"><os family="unix" arch="amd64" /></condition>

  <!-- set time propert -->
  <tstamp>
    <format property="TODAY" pattern="yyyyMMdd" />
  </tstamp>

  <!-- Libraries required for running mpide -->
  <fileset dir=".." id="runtime.jars">
    <include name="core/core.jar" />
    <include name="app/pde.jar" />
    <include name="app/lib/ecj.jar" />
    <include name="app/lib/jna.jar" />
    <include name="app/lib/RXTXcomm.jar" />
    <include name="app/lib/ant.jar" />
    <include name="app/lib/ant-launcher.jar" />
    <include name="app/lib/log4j-1.2.16.jar" />
    <include name="app/lib/log4j.properties" />
  </fileset>

  <target name="build" description="Build mpide.">
    <antcall target="${platform}-build" />
  </target>

  <target name="run" description="Run mpide.">
    <antcall target="${platform}-run" />
  </target>
  
  <target name="win-debug" description="Run mpide from Java." depends="build">
      <java dir="./${platform}/work"
          classpath="${platform}/work/lib:${platform}/work/lib/RXTXcomm.jar:${platform}/work/lib/core.jar:${platform}/work/lib/ecj.jar:${platform}/work/lib/jna.jar:${platform}/work/lib/log4j-1.2.16.jar:${platform}/work/lib/pde.jar"
          fork="true"
          jar="./${platform}/work/lib/pde.jar">
    </java>
  </target>

   <target name="linux-debug" description="Run mpide from Java." depends="build">
      <java dir="./${platform}/work"
          classpath="${platform}/work/lib:${platform}/work/lib/RXTXcomm.jar:${platform}/work/lib/core.jar:${platform}/work/lib/ecj.jar:${platform}/work/lib/jna.jar:${platform}/work/lib/log4j-1.2.16.jar:${platform}/work/lib/pde.jar"
          fork="true"
          jar="./${platform}/work/lib/pde.jar">
    </java>
  </target>


<target name="dist" depends="revision-check"
description="Build mpide for distribution.">
    <input message="Enter version number:"
addproperty="version"
defaultvalue="${revision}" />
    <antcall target="${platform}-dist" />
</target>

  <target name="dist-test" depends="revision-check"
          description="Build mpide for distribution.">
    <input message="Enter version number:"
           addproperty="version"
           defaultvalue="${revision}-${platform}-${TODAY}-test" />
    <antcall target="${platform}-dist" />
  </target>


  <!-- "§$§$&, ant doesn't have a built-in help target :( -->
  <target name="help" description="Show project help">
    <java classname="org.apache.tools.ant.Main">
      <arg value="-p" />
    </java>
  </target>

  <!-- - - - - - - - - - - - - - - - - - -->
  <!-- Subprojects: Core, App, Libraries -->
  <!-- - - - - - - - - - - - - - - - - - -->

  <target name="subprojects-clean">
    <subant buildpath="../core" target="clean"/>
    <subant buildpath="../app" target="clean"/>
  </target>

  <target name="subprojects-build">
    <subant buildpath="../core" target="build"/>
    <subant buildpath="../app" target="build"/>
  </target>


  <!-- - - - - - - - - -->
  <!-- Basic Assembly -->
  <!-- - - - - - - - - -->

  <target name="assemble">
    <fail unless="target.path"
message="Do not call assemble from the command line." />
    
    <!-- copy shared tools folder -->
    <copy todir="${target.path}/tools">
      <fileset dir="shared/tools" />
    </copy>
    
    <!-- copy library folder -->
    <copy todir="${target.path}/libraries">
      <fileset dir="../libraries" />
    </copy>
    
    <!-- copy hardware folder -->
    <copy todir="${target.path}/hardware">
      <fileset dir="../hardware" />
    </copy>
    
    <!-- copy shared examples folder -->
    <copy todir="${target.path}/examples">
      <fileset dir="shared/examples" />
    </copy>
    
    <!-- Unzip documentation -->
    <unzip dest="${target.path}" src="shared/reference.zip" overwrite="false"/>
    
    <!-- Write the revision file! -->
    <echo file="${target.path}/lib/version.txt" message="${version}" />
  </target>

  
  <!-- - - - - - - - - -->
  <!-- Revision check -->
  <!-- - - - - - - - - -->
  <target name="revision-check">
    <!-- figure out the revision number -->
    <loadfile srcfile="../todo.txt" property="revision">
      <filterchain>
<headfilter lines="1"/>
<tokenfilter>
<stringtokenizer suppressdelims="true"/>
<!-- grab the thing from the first line that's 4 digits -->
<containsregex pattern="(\d\d\d\d)" />
</tokenfilter>
      </filterchain>
    </loadfile>
    <!-- <echo message="revision is ${revision}." /> -->
    
    <!-- figure out the revision number in base.java -->
    <loadfile srcfile="../app/src/processing/app/Base.java"
property="revision.base">
      <filterchain>
<tokenfilter>
<linetokenizer />
<containsregex pattern="String VERSION_NAME = "/>
<replaceregex pattern="[^0-9]*" flags="g" replace=""/>
</tokenfilter>
      </filterchain>
    </loadfile>
    <!-- <echo message="base revision is ${revision.base}." /> -->
    
    <condition property="revision.correct">
      <!-- Using contains because I can't figure out how to get rid of the
LF in revision.base. Please file a bug if you have a fix. -->
      <contains string="${revision.base}" substring="${revision}"/>
    </condition>
    
    <!-- the revision.base property won't be set
if $revision wasn't found... -->
    <fail unless="revision.correct"
message="Fix revision number in Base.java" />
  </target>
  
  
  <!-- - - - - - - - -->
  <!-- Mac OS X -->
  <!-- - - - - - - - -->

  <target name="macosx-clean" depends="subprojects-clean" description="Clean Mac OS X build">
    <delete dir="macosx/work" />
    <delete dir="macosx/working_dir" />
    <delete dir="macosx/working.dmg" />
    <delete file="macosx/mpide-*.dmg" />
  </target>
  
  <target name="macosx-checkos" unless="macosx">
    <echo>
      =======================================================
      mpide for Mac OS X can only be built on Mac OS X.
      
      Bye.
      =======================================================
    </echo>
    <fail message="wrong platform (${os.name})" />
  </target>
  
  <target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
    <mkdir dir="macosx/work" />
    
    <!-- assemble the pde -->
    <copy todir="macosx/work">
      <fileset dir="macosx/" includes="template.app/**"/>
    </copy>
    
<!-- <rename src="macosx/work/template.app"
dest="macosx/work/mpide.app" />-->
    <move file="macosx/work/template.app"
tofile="macosx/work/mpide.app" />

    <chmod file="macosx/work/mpide.app/Contents/MacOS/JavaApplicationStub" perm="755" />
    
    <copy todir="macosx/work/mpide.app/Contents/Resources/Java" flatten="true">
      <fileset refid="runtime.jars"/>
    </copy>
    
    <copy todir="macosx/work/mpide.app/Contents/Resources/Java">
      <fileset dir="shared" includes="lib/**" />
      <fileset file="shared/revisions.txt" />
    </copy>

    <!-- Unzip AVR tools -->
    <!-- <unzip dest="macosx/work/mpide.app/Contents/Resources/Java/hardware" src="macosx/dist/tools-universal.zip" overwrite="false"/> -->

    <exec executable="unzip">
      <arg value="-q" />
      <arg value="-n" />
      <arg value="-d" />
      <arg value="macosx/work/mpide.app/Contents/Resources/Java/hardware" />
      <arg value="macosx/dist/tools-universal.zip" />
    </exec>
     
<unzip dest="macosx/work/mpide.app/Contents/Resources/Java/hardware/pic32/compiler" src="macosx/dist/pic32-tools-chipKIT-cxx-master-Darwin-image-20120720.zip" overwrite="false"/>
<chmod perm="+x">
      <fileset dir="macosx/work/mpide.app/Contents/Resources/Java/hardware/pic32/compiler" includes="**/*" />
</chmod>

    <copy todir="macosx/work/mpide.app/Contents/Resources/Java/hardware/tools/avr/avr/include/avr">
      <fileset file="macosx/dist/eeprom.h" />
    </copy>

    <antcall target="update-avrdude-macosx">
    </antcall>

    <antcall target="assemble">
      <param name="target.path" value="macosx/work/mpide.app/Contents/Resources/Java" />
    </antcall>
  </target>

  <target name="macosx-run" depends="macosx-build" description="Run Mac OS X version">
    <exec executable="macosx/work/mpide.app/Contents/MacOS/JavaApplicationStub" spawn="true"/>
  </target>

  <target name="macosx-debug" depends="macosx-build" description="Run Mac OS X version">
    <exec executable="macosx/work/mpide.app/Contents/MacOS/JavaApplicationStub" spawn="false"/>
  </target>


  <target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a .dmg of the Mac OS X version">
    <!-- now build the dmg -->
    <gunzip src="macosx/template.dmg.gz" dest="macosx/working.dmg" />
    
    <mkdir dir="macosx/working_dir" />
    <exec executable="hdiutil">
      <arg line="attach macosx/working.dmg -noautoopen -mountpoint macosx/working_dir" />
      <!--<arg line="attach macosx/working.dmg -noautoopen -quiet -mountpoint macosx/working_dir" />-->
    </exec>
    
    <copy todir="macosx/working_dir">
      <fileset dir="macosx/work">
        <exclude name="**/mpideTestSuite/**" />
      </fileset>
    </copy>

    <!-- The ant copy command does not preserve permissions. -->
    <chmod file="macosx/working_dir/mpide.app/Contents/MacOS/JavaApplicationStub" perm="+x" />
    <chmod perm="+x">
        <fileset dir="macosx/working_dir/mpide.app/Contents/Resources/Java/hardware/pic32/compiler" includes="**/*" />
    </chmod>
    <chmod perm="+x">
      <fileset dir="macosx/working_dir/mpide.app/Contents/Resources/Java/hardware/tools/avr/bin" includes="**/*" />
      <fileset dir="macosx/working_dir/mpide.app/Contents/Resources/Java/hardware/tools/avr/avr/bin" includes="**/*" />
      <fileset dir="macosx/working_dir/mpide.app/Contents/Resources/Java/hardware/tools/avr/avr-3/bin" includes="**/*" />
      <fileset dir="macosx/working_dir/mpide.app/Contents/Resources/Java/hardware/tools/avr/avr-4/bin" includes="**/*" />
      <fileset dir="macosx/working_dir/mpide.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/3.4.6/" includes="**/cc1*" />
      <fileset dir="macosx/working_dir/mpide.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/4.3.2/" includes="**/cc1*" />
    </chmod>

    <!-- Pause briefly for the OS to catch up with the DMG changes.
This prevents "hdiutil: couldn't eject "disk3" - Resource busy"
errors when ejecting the disk in the next step.
You may need to set this value higher for your system. -->
    <sleep seconds="3" />

    <exec executable="hdiutil">
      <!--<arg line="detach macosx/working_dir -quiet -force" />-->
      <arg line="detach macosx/working_dir" />
    </exec>
  
    <delete file="macosx/mpide-*.dmg" />
    <exec executable="hdiutil">
      <arg line="convert macosx/working.dmg -quiet -format UDZO -imagekey zlib-level=9 -o macosx/mpide-${version}.dmg" />
    </exec>

    <!-- Clean up the interim files. -->
    <delete file="macosx/working.dmg" />
    <delete dir="macosx/working_dir" />
    
    <echo>
      =======================================================
      mpide for Mac OS X was built. Grab the image from
      
      macosx/mpide-${version}.dmg
      =======================================================
    </echo>
  </target>

  
  <!-- - - - - - - - -->
  <!-- Linux -->
  <!-- - - - - - - - -->
  
  <target name="linux-clean" depends="subprojects-clean" description="Clean linux version">
    <delete dir="linux/work" />
  </target>
  
  <target name="linux-checkos" unless="linux">
    <echo>
      =======================================================
      mpide for Linux can only be built on on unix systems.
      
      Bye.
      =======================================================
    </echo>
    
    <fail message="wrong platform (${os.name})" />
  </target>
  
  <target name="linux-build" depends="revision-check, linux-checkos, subprojects-build" description="Build linux version">
    <mkdir dir="linux/work" />
    
    <copy todir="linux/work">
      <fileset dir="shared" includes="lib/**" />
      <fileset file="shared/revisions.txt" />
    </copy>
    
    <copy todir="linux/work">
      <fileset dir="linux/dist" includes="lib/**" />
    </copy>

    <copy todir="linux/work/lib" flatten="true">
      <fileset refid="runtime.jars" />
    </copy>
    
    <antcall target="assemble">
      <param name="target.path" value="linux/work" />
    </antcall>

    <copy todir="linux/work/hardware">
      <fileset dir="linux/dist" includes="tools/**" />
    </copy>

    <chmod perm="755" file="linux/work/hardware/tools/avrdude" />

    <copy todir="linux/work" file="linux/dist/mpide" />
    <chmod perm="755" file="linux/work/mpide" />
    <unzip dest="linux/work/hardware/pic32/compiler" src="linux/dist/pic32-tools-chipKIT-cxx-master-Linux32-image-20120720.zip" overwrite="false"/>
    <chmod perm="+x">
      <fileset dir="linux/work/hardware/pic32/compiler" includes="**/*" />
    </chmod>

  </target>

 <target name="linux32-build" depends="linux-build" description="Build linux (32-bit) version">
    <!-- Unzip AVR tools -->
    <exec executable="tar" dir="linux/work/hardware">
      <arg value="-xjf"/>
      <arg value="../../avr_tools_linux32.tar.bz2"/>
    </exec>
  </target>


  <target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">
    <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" />
    <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" />
    <chmod perm="755" file="linux/work/hardware/tools/avrdude" />
 <!-- Unzip AVR tools -->
    <exec executable="tar" dir="linux/work/hardware">
      <arg value="-xjf"/>
      <arg value="../../avr_tools_linux64.tar.bz2"/>
    </exec>
    
    <delete includeemptydirs="true">
      <fileset dir="linux/work/hardware/pic32/compiler" includes="**/*"/>
    </delete>
    <unzip dest="linux/work/hardware/pic32/compiler" src="linux/dist/pic32-tools-chipKIT-cxx-master-Linux32-image-20120720.zip"" overwrite="false">
        <patternset>
            <include name="pic32-tools"/>
        </patternset>
    </unzip>
    <chmod perm="+x">
      <fileset dir="linux/work/hardware/pic32/compiler" includes="**/*" />
    </chmod>


  </target>
  
  <target name="linux-run" depends="linux-build"
description="Run Linux (32-bit) version">
    <exec executable="./linux/work/mpide" spawn="false"/>
  </target>
  
  <target name="linux64-run" depends="linux64-build"
description="Run Linux (64-bit) version">
    <exec executable="./linux/work/mpide" spawn="false"/>
  </target>

  <target name="linux-dist" depends="build"
description="Build .tar.gz of linux version">

    <!--get src="http://dev.processing.org/build/jre-tools-6u18-linux-i586.tgz"
dest="linux/jre.tgz"
usetimestamp="true" />
<untar compression="gzip"
dest="linux/work"
src="linux/jre.tgz"
overwrite="false"/-->

<!--
<tar compression="gzip" basedir="linux/work"
destfile="linux/mpide-${version}.tgz" />
-->
    <tar compression="gzip" longfile="gnu" destfile="linux/mpide-${version}.tgz">
      <tarfileset dir="linux/work"
prefix="mpide-${version}"
excludes="mpide,
hardware/tools/avrdude,
java/**,
hardware/pic32/compiler/pic32-tools/**"
/>
      <tarfileset dir="linux/work/hardware/pic32/compiler/pic32-tools/" dirmode="755" prefix="mpide-${version}/hardware/pic32/compiler/pic32-tools" />
      <tarfileset file="linux/work/hardware/pic32/compiler/pic32-tools/**" filemode="755" prefix="mpide-${version}/hardware/pic32/compiler/pic32-tools" />

      <tarfileset file="linux/work/mpide" filemode="755" prefix="mpide-${version}" />
      <tarfileset file="linux/work/hardware/tools/avrdude" filemode="755" prefix="mpide-${version}/hardware/tools" />
    </tar>

    <echo>
      =======================================================
      mpide for Linux was built. Grab the archive from
      
      build/linux/mpide-${version}.tgz
      =======================================================
    </echo>
  </target>

  
  <target name="linux64-dist" depends="linux-dist"
description="Build .tar.gz of linux version" />
  
  <!-- - - - - - - - -->
  <!-- Windows -->
  <!-- - - - - - - - -->
  
  <target name="windows-clean" depends="subprojects-clean"
description="Clean windows version">
    <delete dir="windows/work" />
  </target>
  
  <target name="windows-checkos" unless="windows">
    <echo>
      =======================================================
      mpide for Windows can only be built on windows.
      
      Bye.
      =======================================================
    </echo>
    
    <fail message="wrong platform (${os.name})" />
  </target>
  
  <target name="windows-build"
depends="revision-check, windows-checkos, subprojects-build"
description="Build windows version">
    <mkdir dir="windows/work" />
    
    <!-- assemble the pde -->
    <mkdir dir="windows/work/lib" />
    <copy todir="windows/work/lib" flatten="true">
      <fileset refid="runtime.jars" />
    </copy>
    
    <copy todir="windows/work">
      <fileset dir="shared" includes="lib/**" />
      <fileset file="shared/revisions.txt" />
    </copy>
    
    <copy todir="windows/work">
      <fileset dir="windows/dist" includes="*.dll" />
    </copy>
    
    <copy todir="windows/work">
      <fileset dir="windows/dist" includes="drivers/**" />
    </copy>
    
    <!-- Unzip AVR tools -->
    <unzip dest="windows/work/hardware" src="windows/avr_tools.zip" overwrite="false"/>
    <!-- pic32 compiler -->
   <unzip dest="windows/work/hardware/pic32/compiler" src="windows/dist/pic32-tools-chipKIT-cxx-master-win32-image-20120720.zip" overwrite="false"/>
    <chmod perm="+x">
      <fileset dir="windows/work/hardware/pic32/compiler" includes="**/*" />
    </chmod>


    <copy todir="windows/work/hardware/tools/avr/avr/include/avr">
      <fileset file="windows/eeprom.h" />
    </copy>

    <antcall target="assemble">
      <param name="target.path" value="windows/work" />
  </antcall>

  <antcall target="update-avrdude-windows">
  </antcall>

    
    <property name="launch4j.dir" value="windows/launcher/launch4j/" />
    <taskdef name="launch4j"
classname="net.sf.launch4j.ant.Launch4jTask"
classpath="${launch4j.dir}/launch4j.jar; ${launch4j.dir}/lib/xstream.jar; " />

    <copy todir="windows/work">
      <fileset dir="windows/launcher"
includes="about.bmp, application.ico, config.xml"/>
    </copy>
    <launch4j configFile="windows/work/config.xml" />
    <delete dir="windows/work"
includes="about.bmp, application.ico, config.xml" />

    <!-- cygwin requires html, dll, and exe to have the +x flag -->
    <chmod perm="755">
      <fileset dir="windows/work" includes="**/*.html, **/*.dll, **/*.exe" />
    </chmod>
  </target>
  
  <target name="windows-run" depends="windows-build"
description="Run windows version">
    <exec executable="windows/work/mpide.exe"
dir="windows/work" spawn="true"/>
  </target>

  <target name="windows-dist" depends="windows-build"
description="Create .zip files of windows version">

    <!--get src="http://dev.processing.org/build/jre-tools-6u18-windows-i586.zip"
dest="windows/jre.zip"
usetimestamp="true" /-->

    <unzip dest="windows/work" src="windows/jre.zip" overwrite="false"/>

    <!--
<zip basedir="windows/work"
prefix="mpide-${version}"
destfile="windows/mpide-${version}.zip" />
<zip basedir="windows/work"
prefix="mpide-${version}"
destfile="windows/mpide-${version}-expert.zip"
excludes="java/**" />
-->

    <zip destfile="windows/mpide-${version}.zip">
      <zipfileset dir="windows/work"
prefix="mpide-${version}" />
    </zip>

    <zip destfile="windows/mpide-${version}-expert.zip">
      <zipfileset dir="windows/work"
prefix="mpide-${version}"
excludes="java/**" />
    </zip>
    
    <echo>
      =======================================================
      mpide for Windows was built. Grab the archive from
      
      windows/mpide-${version}.zip
      windows/mpide-${version}-expert.zip
      =======================================================
    </echo>
  </target>
  

  <!-- - - - - - - - -->
  <!-- Source -->
  <!-- - - - - - - - -->
 
   <target name="source-dist" depends="revision-check"
description="Build .tar.gz of source code">
    <input message="Enter version number:"
addproperty="version"
defaultvalue="${revision}" />

    <tar compression="gzip" longfile="gnu" destfile="mpide-${version}-src.tar.gz">
      <tarfileset dir="../"
prefix="mpide-${version}"
excludes="**/*.tgz,
**/macosx/,
**/windows/,
**/work/,
**/.git/,
**/*.class"
/>
    </tar>

    <echo>
      =======================================================
      mpide source distribution was built. Grab the archive from
      
      mpide-${version}-src.tar.gz
      =======================================================
    </echo>
  </target>
  

  <!-- - - - - - - - -->
  <!-- Run It! -->
  <!-- - - - - - - - -->
  
  <target name="clean" description="Perform a spring cleaning"
depends="linux-clean, windows-clean, macosx-clean, subprojects-clean">
  </target>


  <target name="update-avrdude-macosx" description="Update the avrdude configuration to latest version." depends="">
      <copy todir="macosx/work/mpide.app/Contents/Resources/Java/hardware/tools/avr/etc/">
        <fileset file="macosx/dist/avrdude.conf" />
    </copy>
  </target>

  <target name="update-avrdude-windows" description="Update the avrdude configuration to latest version." depends="">
      <copy todir="windows/work/hardware/tools/avr/etc/">
        <fileset file="windows/dist/avrdude.conf" />
    </copy>
  </target>
  <!-- not need linux does this already.
<target name="update-avrdude-linux" description="Update the avrdude configuration to latest version." depends="">
<copy todir="macosx/work/mpide.app/Contents/Resources/Java/hardware/tools/avr/etc/">
<fileset file="linux/dist/tools/avrdude.conf" />
</copy>
</target>
-->


</project>
Something went wrong with that request. Please try again.