1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Removed carriage returns from Windows dist.sh and updated readme.txt to mention Linux distribution.

This commit is contained in:
David A. Mellis
2006-12-26 00:07:21 +00:00
parent 122bee43c6
commit af20a36b6f
2 changed files with 292 additions and 290 deletions

View File

@ -1,128 +1,128 @@
#!/bin/sh #!/bin/sh
REVISION=`head -c 4 ../../todo.txt` REVISION=`head -c 4 ../../todo.txt`
# check to see if the version number in the app is correct # check to see if the version number in the app is correct
# so that mikkel doesn't kick my ass # so that mikkel doesn't kick my ass
VERSIONED=`cat ../../app/Base.java | grep $REVISION` VERSIONED=`cat ../../app/Base.java | grep $REVISION`
if [ -z "$VERSIONED" ] if [ -z "$VERSIONED" ]
then then
echo Fix the revision number in Base.java echo Fix the revision number in Base.java
exit exit
fi fi
./make.sh ./make.sh
echo Creating P5 distribution for revision $REVISION... echo Creating P5 distribution for revision $REVISION...
echo echo
# remove any old boogers # remove any old boogers
rm -rf arduino rm -rf arduino
rm -rf arduino-* rm -rf arduino-*
# use 'shared' files as starting point # use 'shared' files as starting point
cp -r ../shared arduino cp -r ../shared arduino
mkdir arduino mkdir arduino
cp -r work/lib/targets arduino/lib cp -r work/lib/targets arduino/lib
# new style examples thing ala reas # new style examples thing ala reas
#cd arduino #cd arduino
#mkdir examples #mkdir examples
#unzip -d examples -q dist/examples.zip #unzip -d examples -q dist/examples.zip
#rm dist/examples.zip #rm dist/examples.zip
#rm -rf dist #rm -rf dist
#cd .. #cd ..
mv arduino/dist/examples arduino/examples mv arduino/dist/examples arduino/examples
rm -rf arduino/dist rm -rf arduino/dist
# extract reference # extract reference
cd arduino cd arduino
unzip reference.zip unzip reference.zip
rm reference.zip rm reference.zip
cd .. cd ..
# add java (jre) files # add java (jre) files
unzip -q -d arduino jre.zip unzip -q -d arduino jre.zip
# copy stuff from work/ # copy stuff from work/
cp -r work/tools arduino cp -r work/tools arduino
cp -r work/bootloader arduino cp -r work/bootloader arduino
cp -r work/drivers arduino cp -r work/drivers arduino
#cp -r work/examples arduino #cp -r work/examples arduino
# directories used by the app # directories used by the app
#mkdir arduino/lib/build #mkdir arduino/lib/build
# grab pde.jar and export from the working dir # grab pde.jar and export from the working dir
cp work/lib/pde.jar arduino/lib/ cp work/lib/pde.jar arduino/lib/
cp work/java/lib/rt.jar arduino/lib/ cp work/java/lib/rt.jar arduino/lib/
#cp work/lib/core.jar arduino/lib/ #cp work/lib/core.jar arduino/lib/
#cp -r work/lib/export arduino/lib/ #cp -r work/lib/export arduino/lib/
#rm -rf arduino/lib/export/CVS #rm -rf arduino/lib/export/CVS
# get jikes and depedencies # get jikes and depedencies
#gunzip < dist/jikes.gz > arduino/jikes.exe #gunzip < dist/jikes.gz > arduino/jikes.exe
cp dist/jikes.exe arduino/ cp dist/jikes.exe arduino/
chmod +x arduino/jikes.exe chmod +x arduino/jikes.exe
cp dist/ICE_JNIRegistry.dll arduino/ cp dist/ICE_JNIRegistry.dll arduino/
chmod +x arduino/ICE_JNIRegistry.dll chmod +x arduino/ICE_JNIRegistry.dll
cp work/rxtxSerial.dll arduino/ cp work/rxtxSerial.dll arduino/
chmod +x arduino/rxtxSerial.dll chmod +x arduino/rxtxSerial.dll
cp work/*.dll arduino cp work/*.dll arduino
chmod +x arduino/*.dll chmod +x arduino/*.dll
# get platform-specific goodies from the dist dir # get platform-specific goodies from the dist dir
cp launcher/arduino.exe arduino/ cp launcher/arduino.exe arduino/
cp dist/run.bat arduino/ cp dist/run.bat arduino/
chmod +x arduino/run.bat chmod +x arduino/run.bat
# convert notes.txt to windows LFs # convert notes.txt to windows LFs
# the 2> is because the app is a little chatty # the 2> is because the app is a little chatty
unix2dos arduino/revisions.txt 2> /dev/null unix2dos arduino/revisions.txt 2> /dev/null
unix2dos arduino/lib/preferences.txt 2> /dev/null unix2dos arduino/lib/preferences.txt 2> /dev/null
unix2dos arduino/lib/keywords.txt 2> /dev/null unix2dos arduino/lib/keywords.txt 2> /dev/null
rm -f arduino/*.bak rm -f arduino/*.bak
rm -f arduino/lib/*.bak rm -f arduino/lib/*.bak
# remove boogers # remove boogers
find arduino -name "*~" -exec rm -f {} ';' find arduino -name "*~" -exec rm -f {} ';'
find arduino -name ".DS_Store" -exec rm -f {} ';' find arduino -name ".DS_Store" -exec rm -f {} ';'
find arduino -name "._*" -exec rm -f {} ';' find arduino -name "._*" -exec rm -f {} ';'
find arduino -name "Thumbs.db" -exec rm -f {} ';' find arduino -name "Thumbs.db" -exec rm -f {} ';'
# chmod +x the crew # chmod +x the crew
find arduino -name "*.dll" -exec chmod +x {} ';' find arduino -name "*.dll" -exec chmod +x {} ';'
find arduino -name "*.exe" -exec chmod +x {} ';' find arduino -name "*.exe" -exec chmod +x {} ';'
find arduino -name "*.html" -exec chmod +x {} ';' find arduino -name "*.html" -exec chmod +x {} ';'
# clean out the svn entries # clean out the svn entries
find arduino -name ".svn" -exec rm -rf {} ';' 2> /dev/null find arduino -name ".svn" -exec rm -rf {} ';' 2> /dev/null
# zip it all up for release # zip it all up for release
echo Packaging standard release... echo Packaging standard release...
echo echo
P5=arduino-$REVISION P5=arduino-$REVISION
mv arduino $P5 mv arduino $P5
zip -rq $P5.zip $P5 zip -rq $P5.zip $P5
# nah, keep the new directory around # nah, keep the new directory around
#rm -rf $P5 #rm -rf $P5
# zip up another for experts # zip up another for experts
echo Packaging expert release... echo Packaging expert release...
echo echo
cp -a $P5 $P5-expert cp -a $P5 $P5-expert
# can't use the run.bat that's tied to a local jre # can't use the run.bat that's tied to a local jre
rm $P5-expert/run.bat rm $P5-expert/run.bat
cp dist/run-expert.bat $P5-expert/run.bat cp dist/run-expert.bat $P5-expert/run.bat
chmod +x $P5-expert/run.bat chmod +x $P5-expert/run.bat
# remove enormous java runtime # remove enormous java runtime
rm -rf $P5-expert/java rm -rf $P5-expert/java
zip -rq $P5-expert.zip $P5-expert zip -rq $P5-expert.zip $P5-expert
echo Done. echo Done.

View File

@ -1,162 +1,164 @@
Arduino is an open-source physical computing platform based on a simple i/o Arduino is an open-source physical computing platform based on a simple i/o
board and a development environment that implements the Processing/Wiring board and a development environment that implements the Processing/Wiring
language. Arduino can be used to develop stand-alone interactive objects or language. Arduino can be used to develop stand-alone interactive objects or
can be connected to software on your computer (e.g. Flash, Processing, MaxMSP). can be connected to software on your computer (e.g. Flash, Processing, MaxMSP).
The boards can be assembled by hand or purchased preassembled; the open-source The boards can be assembled by hand or purchased preassembled; the open-source
IDE can be downloaded for free. IDE can be downloaded for free.
For more information, see the website at: http://www.arduino.cc/ For more information, see the website at: http://www.arduino.cc/
or the forums at: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl or the forums at: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl
To report a bug or a make a suggestions, go to: To report a bug or a make a suggestions, go to:
[hardware] http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=hwbugs [hardware] http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=hwbugs
[software] http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=swbugs [software] http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=swbugs
INSTALLATION INSTALLATION
Detailed instructions are in reference/Guide_Windows.html and Detailed instructions are in reference/Guide_Windows.html and
reference/Guide_MacOSX.html. For Linux, see the Arduino playground: reference/Guide_MacOSX.html. For Linux, see the Arduino playground:
http://www.arduino.cc/playground/Learning/Linux http://www.arduino.cc/playground/Learning/Linux
If you are using a USB Arduino, you will need to install the drivers for the If you are using a USB Arduino, you will need to install the drivers for the
FTDI chip on the board. These can be found in the drivers/ directory. FTDI chip on the board. These can be found in the drivers/ directory.
* On Windows, plug in the Arduino board and point the Windows Add Hardware * On Windows, plug in the Arduino board and point the Windows Add Hardware
wizard to the drivers/FTDI USB Drivers sub-directory of the Arduino wizard to the drivers/FTDI USB Drivers sub-directory of the Arduino
application directory. application directory.
* On the Mac, mount the FTDIUSBSerialDriver_v2_1_6.dmg (on PPC Macs) or the * On the Mac, mount the FTDIUSBSerialDriver_v2_1_6.dmg (on PPC Macs) or the
FTDIUSBSerialDriver_v2_2_6_Intel.dmg (on Intel Macs) disk image and run the FTDIUSBSerialDriver_v2_2_6_Intel.dmg (on Intel Macs) disk image and run the
included FTDIUSBSerialDriver.pkg. You will need to restart your computer. included FTDIUSBSerialDriver.pkg. You will need to restart your computer.
* On Linux, drivers are included in kernel versions 2.4.20 or greater. * On Linux, drivers are included in kernel versions 2.4.20 or greater.
CREDITS CREDITS
Arduino is an open source project, owned by nobody and supported by many. Arduino is an open source project, owned by nobody and supported by many.
The Arduino team is composed of Massimo Banzi, David Cuartielles, Tom Igoe, The Arduino team is composed of Massimo Banzi, David Cuartielles, Tom Igoe,
Gianluca Martino, and David A. Mellis. Gianluca Martino, and David A. Mellis.
Nicholas Zambetti has contributed from the beginning. Nicholas Zambetti has contributed from the beginning.
Yaniv Steiner and Giorgio Olivero have been supporting the project and are Yaniv Steiner and Giorgio Olivero have been supporting the project and are
working at using it with the Instant Soup platform. working at using it with the Instant Soup platform.
Arduino uses the GNU avr-gcc toolchain, uisp, avr-libc, avrlib, and code Arduino uses the GNU avr-gcc toolchain, uisp, avr-libc, avrlib, and code
from Processing and Wiring. from Processing and Wiring.
UPDATES UPDATES
0007 - 2006.12.25 0007 - 2006.12.25
* Smaller core (about 3.5 KB instead of 4.5 KB). * Smaller core (about 3.5 KB instead of 4.5 KB).
* Added a SoftwareSerial library (thanks to Antonio, Heather Dewey-Hagborg, and * Added a SoftwareSerial library (thanks to Antonio, Heather Dewey-Hagborg, and
bigengineer for their help). bigengineer for their help).
* Implemented a Serial.flush() routine; see reference for details. * Implemented a Serial.flush() routine; see reference for details.
* Digital pins 0 and 1 can be used for i/o until a call to Serial.begin(). * Digital pins 0 and 1 can be used for i/o until a call to Serial.begin().
* Replaced avr-lib's uart routines with custom code for handling serial * Replaced avr-lib's uart routines with custom code for handling serial
communication and modified C++ serial commands to call the C serial commands; communication and modified C++ serial commands to call the C serial commands;
the code may behave slightly differently in border cases (e.g. non-standard the code may behave slightly differently in border cases (e.g. non-standard
speeds, or on overflow). speeds, or on overflow).
* Added attachInterrupt() and detachInterrupt() functions for handling of * Added attachInterrupt() and detachInterrupt() functions for handling of
external interrupts on pins 2 and 3. external interrupts on pins 2 and 3.
* Implemented shiftOut() routine; see reference for details. * Implemented shiftOut() routine; see reference for details.
* Defining binary constants: e.g. B1010 is 6. * Defining binary constants: e.g. B1010 is 6.
* Mac versions no longer require running of the macosx_setup.command script. * Mac versions no longer require running of the macosx_setup.command script.
* Windows version comes with the FTDI USB drivers already unzipped. * Windows version comes with the FTDI USB drivers already unzipped.
* New Linux binary distribution (still requires some programs to be
0006 - 2006.10.21 pre-installed).
* Mac version no longer requires Java 1.5, meaning it should run on 10.3.9. 0006 - 2006.10.21
* Added support for analog inputs 6 and 7 and pwm on pins 5 and 6 on the
on the ATmega168 used in the Arduino Mini (extra analog inputs not available * Mac version no longer requires Java 1.5, meaning it should run on 10.3.9.
in DIP ATmega168s). * Added support for analog inputs 6 and 7 and pwm on pins 5 and 6 on the
* You now select the baud rate for the serial monitor from within the editor on the ATmega168 used in the Arduino Mini (extra analog inputs not available
status bar when the serial monitor is running instead of from the Tools menu. in DIP ATmega168s).
* Pressing enter within the serial monitor edit box no longer appends a newline * You now select the baud rate for the serial monitor from within the editor
to the message sent to the board. status bar when the serial monitor is running instead of from the Tools menu.
* Included the Wire (TWI) library from Wiring. * Pressing enter within the serial monitor edit box no longer appends a newline
* Updated the reference. to the message sent to the board.
* Included the Wire (TWI) library from Wiring.
0005 - 2006.09.26 * Updated the reference.
* Applied patch from Hans Steiner to improve Linux support by searching for avr 0005 - 2006.09.26
tools in the user's path instead of expecting them at a fixed location.
* Added an upload.verbose preference for help in debugging. * Applied patch from Hans Steiner to improve Linux support by searching for avr
* ATmega168 support! tools in the user's path instead of expecting them at a fixed location.
* New Wiring-compatible randomSeed(), random(max) and random(min, max) functions * Added an upload.verbose preference for help in debugging.
(except operating on longs instead of floats). * ATmega168 support!
* Fixed bug that sometimes caused uploading of old versions of a sketch. * New Wiring-compatible randomSeed(), random(max) and random(min, max) functions
* Serial monitor nows include an interface to send messages to the Arduino (except operating on longs instead of floats).
board. Pressing return appends a newline, pushing the send button doesn't. * Fixed bug that sometimes caused uploading of old versions of a sketch.
* Now displaying "burning bootloader..." and "compiling..." status messages. * Serial monitor nows include an interface to send messages to the Arduino
board. Pressing return appends a newline, pushing the send button doesn't.
0004 - 2006.04.26 * Now displaying "burning bootloader..." and "compiling..." status messages.
* Main sketch is now compiled as C++ (instead of C). 0004 - 2006.04.26
* Updated avr toolchain.
* printInteger(), printHex(), etc. now handle longs. * Main sketch is now compiled as C++ (instead of C).
* millis() fixed (now overflows after days, not minutes) * Updated avr toolchain.
* Fixed path to java in Windows run.bat. * printInteger(), printHex(), etc. now handle longs.
* Added Matrix and Sprite libraries (written with Nicholas Zambetti). * millis() fixed (now overflows after days, not minutes)
* PWM now working on pin 11 (in addition to pins 9 and 10). * Fixed path to java in Windows run.bat.
* Slowed PWM frequency (on all three PWM pins) to 1KHz. * Added Matrix and Sprite libraries (written with Nicholas Zambetti).
* Now give an error if compiled sketch is too big. * PWM now working on pin 11 (in addition to pins 9 and 10).
* Fixed abs(), min(), max(), and constrain() macros. * Slowed PWM frequency (on all three PWM pins) to 1KHz.
* Added menu items to the IDE to burn bootloader. * Now give an error if compiled sketch is too big.
* Now display binary sketch size on upload, and give error if too big. * Fixed abs(), min(), max(), and constrain() macros.
* Added C++ serial library. * Added menu items to the IDE to burn bootloader.
* Resynced with Processing/Wiring IDE code (improved auto-format, faster logging * Now display binary sketch size on upload, and give error if too big.
to serial monitor console, other bug fixes) * Added C++ serial library.
* New library system. * Resynced with Processing/Wiring IDE code (improved auto-format, faster logging
* Updated to latest version of the RXTX serial library; Mac users will need to to serial monitor console, other bug fixes)
rerun macosx_setup.command. * New library system.
* Updated to latest version of the RXTX serial library; Mac users will need to
0003 - 2006.01.16 rerun macosx_setup.command.
API Changes 0003 - 2006.01.16
* Reversed the analog input pins to correspond to newer boards. This means
a call, for example, to analogRead(0) must be changed to analogRead(5) in API Changes
order to read the same physical pin. * Reversed the analog input pins to correspond to newer boards. This means
* Added a printNewline() function (which sends '\n' = ASCII 10). a call, for example, to analogRead(0) must be changed to analogRead(5) in
order to read the same physical pin.
New Stuff * Added a printNewline() function (which sends '\n' = ASCII 10).
* Reference is included (features native to C not yet documented).
* Serial monitor added (click the toolbar button to turn it on or off). Baud New Stuff
rate is controlled by the Serial Monitor Baud Rate Menu, defaults to 9600. * Reference is included (features native to C not yet documented).
Icon and implementation from Wiring. * Serial monitor added (click the toolbar button to turn it on or off). Baud
* Serial port menu now automatically refreshes when opened. rate is controlled by the Serial Monitor Baud Rate Menu, defaults to 9600.
* New blue color scheme and icons courtesy of Noah Shibley (colors are hardcoded Icon and implementation from Wiring.
into the source to ensure consistency with image files). * Serial port menu now automatically refreshes when opened.
* Keyspan and FTDI USB drivers included with Mac and Windows distributions. * New blue color scheme and icons courtesy of Noah Shibley (colors are hardcoded
into the source to ensure consistency with image files).
Bug Fixes * Keyspan and FTDI USB drivers included with Mac and Windows distributions.
* millis() now updates every millisecond instead of every second.
* Bootloader included with Windows distribution (it was already in the Mac Bug Fixes
dist). * millis() now updates every millisecond instead of every second.
* Updated icon of the Windows executable. * Bootloader included with Windows distribution (it was already in the Mac
* Now flushing the serial port before uploading (should fix some errors). dist).
* Improved accuracy of the delayMicroseconds() function. * Updated icon of the Windows executable.
* Now flushing the serial port before uploading (should fix some errors).
Other * Improved accuracy of the delayMicroseconds() function.
* Upload rate no longer selectable from a menu within the IDE. Instead, edit
the serial.download_rate item in the preferences.txt file. Other
* Created Xcode project for building Arduino on the Mac (doesn't yet regenerate * Upload rate no longer selectable from a menu within the IDE. Instead, edit
the grammar files or package the distribution); active target should be "App". the serial.download_rate item in the preferences.txt file.
* Removed unused or unimplemented items from menus. * Created Xcode project for building Arduino on the Mac (doesn't yet regenerate
the grammar files or package the distribution); active target should be "App".
0002 - 2005.10.05 * Removed unused or unimplemented items from menus.
* New build process no longer uses makefiles; now controlled by preferences.txt. 0002 - 2005.10.05
* core/ replaced with targets/; can now link against Wiring libraries.
* Replaced print() with printString, printInteger, printHex, printByte, etc. * New build process no longer uses makefiles; now controlled by preferences.txt.
* Added menu for selecting serial port speed. * core/ replaced with targets/; can now link against Wiring libraries.
* Updated icon. * Replaced print() with printString, printInteger, printHex, printByte, etc.
* Bootloader shrunk to less than 1 KB; fuses updated accordingly. * Added menu for selecting serial port speed.
* Added serialRead(), serialAvailable(), and delayMicroseconds(). * Updated icon.
* Bootloader shrunk to less than 1 KB; fuses updated accordingly.
0001 - 2005.08.25 * Added serialRead(), serialAvailable(), and delayMicroseconds().
* This is the first released of the unified IDE + language library 0001 - 2005.08.25
it's a terrible hack... but it works. at the moment it's in alpha stage
but it can be used to work. * This is the first released of the unified IDE + language library
* The processing preprocessor is included but not used. it's a terrible hack... but it works. at the moment it's in alpha stage
but it can be used to work.
* The processing preprocessor is included but not used.