Skip to content

Commit 24bd974

Browse files
committed
Updates to build.xml. (version auto defetect for "dist" target)
1 parent c1ce89e commit 24bd974

File tree

3 files changed

+23
-31
lines changed

3 files changed

+23
-31
lines changed

build/build.xml

+19-25
Original file line numberDiff line numberDiff line change
@@ -110,41 +110,35 @@
110110
<!-- - - - - - - - - -->
111111
<target name="revision-check">
112112
<!-- figure out the revision number -->
113-
<loadfile srcfile="../todo.txt" property="revision">
113+
<loadfile srcfile="shared/revisions.txt" property="revision">
114114
<filterchain>
115-
<headfilter lines="1"/>
116-
<tokenfilter>
117-
<stringtokenizer suppressdelims="true"/>
118-
<!-- grab the thing from the first line that's 4 digits -->
119-
<containsregex pattern="(\d\d\d\d)" />
120-
</tokenfilter>
115+
<ignoreblank />
116+
<headfilter lines="1"/>
117+
<tokenfilter>
118+
<linetokenizer includeDelims="false" />
119+
<!-- grab the thing from the first line that's 4 digits -->
120+
<containsregex pattern="ARDUINO (.*) " />
121+
<replaceregex pattern="ARDUINO ([^ ]*).*" replace="\1" />
122+
</tokenfilter>
123+
<tokenfilter>
124+
<stringtokenizer suppressdelims="true" />
125+
</tokenfilter>
121126
</filterchain>
122127
</loadfile>
123-
<!-- <echo message="revision is ${revision}." /> -->
128+
<echo message="Latest revision detected in shared/revision.txt is: ${revision}" />
124129

125130
<!-- figure out the revision number in base.java -->
126131
<loadfile srcfile="../app/src/processing/app/Base.java"
127132
property="revision.base">
128133
<filterchain>
129-
<tokenfilter>
130-
<linetokenizer />
131-
<containsregex pattern="String VERSION_NAME = "/>
132-
<replaceregex pattern="[^0-9]*" flags="g" replace=""/>
133-
</tokenfilter>
134+
<tokenfilter>
135+
<linetokenizer />
136+
<containsregex pattern="String VERSION_NAME = "/>
137+
<replaceregex pattern="[^0-9]*" flags="g" replace=""/>
138+
</tokenfilter>
134139
</filterchain>
135140
</loadfile>
136-
<!-- <echo message="base revision is ${revision.base}." /> -->
137-
138-
<condition property="revision.correct">
139-
<!-- Using contains because I can't figure out how to get rid of the
140-
LF in revision.base. Please file a bug if you have a fix. -->
141-
<contains string="${revision.base}" substring="${revision}"/>
142-
</condition>
143-
144-
<!-- the revision.base property won't be set
145-
if $revision wasn't found... -->
146-
<fail unless="revision.correct"
147-
message="Fix revision number in Base.java" />
141+
<echo message="Revision in Base.java is: ${revision.base}" />
148142
</target>
149143

150144
<!-- - - - - - - - -->

build/shared/revisions.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
ARDUINO BETA 1.5.2 - 2012.01.23
2+
ARDUINO 1.5.2 BETA - 2012.01.23
33

44
[ide]
55
* Scrollable editor tabs (Shigheru KANEMOTO)
@@ -31,11 +31,11 @@ ARDUINO BETA 1.5.2 - 2012.01.23
3131
* Merged all improvements made in Arduino IDE 1.0.3
3232
* Merged all improvements made in Arduino IDE 1.0.4 (not yet released)
3333

34-
ARDUINO BETA 1.5.1r2 - 2012.11.06
34+
ARDUINO 1.5.1r2 BETA - 2012.11.06
3535

3636
* Fixed wrong release file for windows.
3737

38-
ARDUINO BETA 1.5.1 - 2012.11.05
38+
ARDUINO 1.5.1 BETA - 2012.11.05
3939

4040
* Merged changes coming from stable release of Arduino IDE 1.0.2.
4141

@@ -60,7 +60,7 @@ ARDUINO BETA 1.5.1 - 2012.11.05
6060
[firmwares]
6161
* Added firmware for atmega16u2 on Due Board.
6262

63-
ARDUINO BETA 1.5 - 2012.10.22
63+
ARDUINO 1.5 BETA - 2012.10.22
6464

6565
* First release for the unified IDE for both AVR 8-bit and ARM 32-bit
6666
(SAM3 CPUs) architectures.

todo.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
0152 arduino
2-
31
Fix Linux make.sh, etc. scripts
42
Test on Linux.
53

0 commit comments

Comments
 (0)