Skip to content

Commit 12d4552

Browse files
committed
Merge branch 'master' into new-extension
Conflicts: app/src/processing/app/Editor.java
2 parents 3625a10 + 300f5e2 commit 12d4552

File tree

20 files changed

+1132
-45
lines changed

20 files changed

+1132
-45
lines changed

app/src/processing/app/Editor.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,6 @@ public boolean handleSaveAs() {
22922292

22932293

22942294
public boolean serialPrompt() {
2295-
populateSerialMenu();
22962295
int count = serialMenu.getItemCount();
22972296
Object[] names = new Object[count];
22982297
for (int i = 0; i < count; i++) {
@@ -2357,7 +2356,9 @@ public void run() {
23572356
// error message will already be visible
23582357
}
23592358
} catch (SerialNotFoundException e) {
2360-
if (serialPrompt()) run();
2359+
populateSerialMenu();
2360+
if (serialMenu.getItemCount() == 0) statusError(e);
2361+
else if (serialPrompt()) run();
23612362
else statusNotice("Upload canceled.");
23622363
} catch (RunnerException e) {
23632364
//statusError("Error during upload.");
@@ -2389,7 +2390,9 @@ public void run() {
23892390
// error message will already be visible
23902391
}
23912392
} catch (SerialNotFoundException e) {
2392-
if (serialPrompt()) run();
2393+
populateSerialMenu();
2394+
if (serialMenu.getItemCount() == 0) statusError(e);
2395+
else if (serialPrompt()) run();
23932396
else statusNotice("Upload canceled.");
23942397
} catch (RunnerException e) {
23952398
//statusError("Error during upload.");

build/build.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@
198198
<arg value="macosx/dist/tools-universal.zip" />
199199
</exec>
200200

201+
<copy todir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/include/avr">
202+
<fileset file="macosx/dist/eeprom.h" />
203+
</copy>
204+
201205
<antcall target="assemble">
202206
<param name="target.path" value="macosx/work/Arduino.app/Contents/Resources/Java" />
203207
</antcall>
@@ -218,7 +222,9 @@
218222
</exec>
219223

220224
<copy todir="macosx/working_dir">
221-
<fileset dir="macosx/work" />
225+
<fileset dir="macosx/work">
226+
<exclude name="**/ArduinoTestSuite/**" />
227+
</fileset>
222228
</copy>
223229

224230
<!-- The ant copy command does not preserve permissions. -->
@@ -402,6 +408,10 @@
402408
<!-- Unzip AVR tools -->
403409
<unzip dest="windows/work/hardware" src="windows/avr_tools.zip" overwrite="false"/>
404410

411+
<copy todir="windows/work/hardware/tools/avr/avr/include/avr">
412+
<fileset file="windows/eeprom.h" />
413+
</copy>
414+
405415
<antcall target="assemble">
406416
<param name="target.path" value="windows/work" />
407417
</antcall>

build/create_reference.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020

2121
my $faq = create_page('FAQ.html', "$ARDUINO/Main/FAQ");
2222
my $env = create_page('environment.html', "$ARDUINO/Main/Environment");
23-
my $css = create_page('arduino.css', "$ARDUINO/pub/skins/arduino/arduino.css");
23+
my $css = create_page('arduinoUno.css', "$ARDUINO/pub/skins/arduinoUno/arduinoUno.css");
2424
my $eeprom = create_page('EEPROM.html', "$ARDUINO/Reference/EEPROM");
2525
my $stepper = create_page('Stepper.html', "$ARDUINO/Reference/Stepper");
2626
my $softser = create_page('SoftwareSerial.html', "$ARDUINO/Reference/SoftwareSerial");
2727
my $wire = create_page('Wire.html', "$ARDUINO/Reference/Wire");
28+
my $sd = create_page('SD.html', "$ARDUINO/Reference/SD");
2829
my $servo = create_page('Servo.html', "$ARDUINO/Reference/Servo");
2930
my $spi = create_page('SPI.html', "$ARDUINO/Reference/SPI");
3031
my $lcd = create_page('LiquidCrystal.html', "$ARDUINO/Reference/LiquidCrystal");
@@ -38,6 +39,8 @@
3839
create_linked_pages($stepper, qr!$ARDUINO/Reference/(Stepper\w+)!, '%%.html');
3940
create_linked_pages($wire, qr!$ARDUINO/Reference/(Wire\w+)!, '%%.html');
4041
create_linked_pages($servo, qr!$ARDUINO/Reference/(Servo\w+)!, '%%.html');
42+
create_linked_pages($sd, qr!$ARDUINO/Reference/(SD\w+)!, '%%.html');
43+
create_linked_pages($sd, qr!$ARDUINO/Reference/(File\w+)!, '%%.html');
4144
create_linked_pages($spi, qr!$ARDUINO/Reference/(SPI\w+)!, '%%.html');
4245
create_linked_pages($lcd, qr!$ARDUINO/Reference/(LiquidCrystal\w+)!, '%%.html');
4346
create_linked_pages($ethernet, qr!$ARDUINO/Reference/(Ethernet\w+)!, '%%.html');
@@ -104,7 +107,7 @@ sub localize_page {
104107
$text =~ s!$ARDUINO/Serial/([^']*)!Serial_$1.html!xg;
105108

106109
# direct pages to the local style file
107-
$text =~ s!$ARDUINO/pub/skins/arduino/arduino.css!arduino.css!xg;
110+
$text =~ s!$ARDUINO/pub/skins/arduinoUno/arduinoUno.css!arduinoUno.css!xg;
108111

109112
# change links to Main/FAQ to go to FAQ.html
110113
$text =~ s!$ARDUINO/Main/FAQ!FAQ.html!xg;

build/fetch.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ mkdir reference || die 'unable to create reference directory'
1212
cd reference
1313
perl ../create_reference.pl || die 'unable to create local reference pages'
1414

15+
mkdir img
16+
curl http://arduino.cc/en/pub/skins/arduinoUno/img/logo.png > img/logo.png
17+
1518
cd ..
1619
zip -r shared/reference.zip reference || die 'unable to create reference.zip archive'
1720

build/linux/dist/arduino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
APPDIR="$(dirname -- "${0}")"
3+
APPDIR="$(dirname -- $(readlink -f -- "${0}") )"
44

55
cd $APPDIR
66

0 commit comments

Comments
 (0)