Skip to content

Instantly share code, notes, and snippets.

@vickash
Last active December 17, 2015 23:29
Show Gist options
  • Save vickash/5689468 to your computer and use it in GitHub Desktop.
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).
#
# 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"
@vickash
Copy link
Author

vickash commented Jun 1, 2013

Notes:

  • dino >= 0.11 only. Leverages the dino command line tool to organize the sketch files.
  • Requires Arduino IDE 1.5 or later to be installed. This provides command line compilation and upload support.
  • OS X only for now.
  • If on Linux you just need to change the path to the executable.
  • No command line arguments yet.
  • You'll need to specify your development device and options on the last line.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment