Last active
December 17, 2015 23:29
-
-
Save vickash/5689468 to your computer and use it in GitHub Desktop.
A quick and dirty build script for doing development work on dino (http://www.github.com/austinbv/dino).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Development build script for work on dino (http://www.github.com/austinbv/dino). | |
# Requires Arduino IDE 1.5 (beta) or greater which includes command line support. | |
# | |
#!/bin/bash | |
# | |
# Remove any old tmp files. | |
if [ -d "tmp" ]; then | |
rm -r tmp | |
fi | |
# Make and move to a temp folder to hold the sketch. | |
mkdir tmp | |
cd tmp | |
# Generate the sketch files. | |
../bin/dino generate-sketch serial | |
# Compile and upload. | |
# NOTES: | |
# Replace /dev/tty.usbmodem621 with your serial device. | |
# Edit the --board option to match your development platform. | |
# See https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-from-command-line. | |
/Applications/Arduino.app/Contents/MacOS/JavaApplicationStub --board arduino:avr:uno --port /dev/tty.usbmodem621 --upload "$(pwd)/du/du.ino" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes:
dino
command line tool to organize the sketch files.Changes welcome. Most of this could be rewritten in Ruby. Then just the last line would execute at the shell. Easy to customize to work on Windows and Linux.