Skip to content

Commit e7180db

Browse files
committed
Build scripts for IOIODude and add version number.
1 parent 574dac1 commit e7180db

File tree

7 files changed

+90
-0
lines changed

7 files changed

+90
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
proguard.cfg eol=native
33
*.xml eol=native
44
tools/* eol=lf
5+
*.bat eol=crlf
56

release/apps/ioiodude.jar

-809 KB
Binary file not shown.

software/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ gen
33
doc
44
*.settings
55
build.xml
6+
!IOIODude/build.xml
67
local.properties
78
proguard-project.txt

software/IOIODude/build.xml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?eclipse.ant.import?>
3+
<project basedir="." default="build" name="IOIODude">
4+
<property environment="env" />
5+
<property name="target" value="1.6" />
6+
<property name="source" value="1.6" />
7+
<path id="IOIODude.classpath">
8+
<pathelement location="bin"/>
9+
<pathelement location="lib/jna-3.5.1.jar"/>
10+
<pathelement location="lib/purejavacomm-0.0.11.jar"/>
11+
</path>
12+
<target name="init">
13+
<mkdir dir="bin" />
14+
<mkdir dir="bin/classes" />
15+
<copy includeemptydirs="false" todir="bin">
16+
<fileset dir="." includes="ioiodude" />
17+
<fileset dir="." includes="ioiodude.bat" />
18+
</copy>
19+
</target>
20+
<target name="clean">
21+
<delete dir="bin" />
22+
</target>
23+
<target depends="clean" name="cleanall" />
24+
<target depends="init" name="build">
25+
<echo message="${ant.project.name}: ${ant.file}" />
26+
<javac debug="off" destdir="bin/classes" source="${source}" target="${target}"
27+
includeantruntime="false">
28+
<src path="src" />
29+
<classpath refid="IOIODude.classpath" />
30+
</javac>
31+
</target>
32+
<target depends="build" name="jar">
33+
<echo message="${ant.project.name}: ${ant.file}" />
34+
<jar destfile="bin/ioiodude.jar" basedir="bin/classes">
35+
<manifest>
36+
<attribute name="Main-Class" value="ioio.dude.IOIODudeMain" />
37+
<attribute name="Class-Path" value="./ jna-3.5.1.jar purejavacomm-0.0.11.jar" />
38+
</manifest>
39+
<zipgroupfileset dir="lib" includes="jna-3.5.1.jar" />
40+
<zipgroupfileset dir="lib" includes="purejavacomm-0.0.11.jar" />
41+
</jar>
42+
</target>
43+
<target depends="jar" name="zip">
44+
<echo message="${ant.project.name}: ${ant.file}" />
45+
<zip destfile="bin/ioiodude.zip">
46+
<zipfileset dir="bin" includes="ioiodude.jar" />
47+
<zipfileset dir="bin" includes="ioiodude" />
48+
<zipfileset dir="bin" includes="ioiodude.bat" />
49+
</zip>
50+
</target>
51+
52+
</project>

software/IOIODude/ioiodude

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
DIR=$(dirname $0)
4+
java -jar $DIR/ioiodude.jar $*
5+

software/IOIODude/ioiodude.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@java -jar %~dp0\ioiodude.jar %*

software/IOIODude/src/ioio/dude/IOIODudeMain.java

+30
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
/*
2+
* Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
3+
*
4+
*
5+
* Redistribution and use in source and binary forms, with or without modification, are
6+
* permitted provided that the following conditions are met:
7+
*
8+
* 1. Redistributions of source code must retain the above copyright notice, this list of
9+
* conditions and the following disclaimer.
10+
*
11+
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
12+
* of conditions and the following disclaimer in the documentation and/or other materials
13+
* provided with the distribution.
14+
*
15+
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
16+
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17+
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ARSHAN POURSOHI OR
18+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
21+
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23+
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24+
*
25+
* The views and conclusions contained in the software and documentation are those of the
26+
* authors and should not be interpreted as representing official policies, either expressed
27+
* or implied.
28+
*/
129
package ioio.dude;
230

331
import java.io.File;
@@ -47,6 +75,8 @@ private static enum Command {
4775
private static boolean force_ = false;
4876

4977
private static void printUsage() {
78+
System.err.println("IOIODude V1.0");
79+
System.err.println();
5080
System.err.println("Usage:");
5181
System.err.println("ioiodude <options> versions");
5282
System.err.println("ioiodude <options> fingerprint");

0 commit comments

Comments
 (0)