view LoadFile/load @ 142:552c77d294ef

More fixes for Windows compilation.
author Jacob Alexander <haata@kiibohd.com>
date Thu, 17 Apr 2014 18:49:40 -0700
parents 945565653607
children 573242fb2854
line wrap: on
line source

#!/bin/bash

#| First check to see teensy-loader-cli has been compiled
if [ ! -e teensy-loader-cli/teensy-loader-cli ]; then
	# Compile teensy-loader-cli
	mkdir -p teensy-loader-cli
	cd teensy-loader-cli
	cmake -G "Unix Makefiles" @CMAKE_SOURCE_DIR@/LoadFile
	make
	cd -
fi

#| Loads the hex file onto the teensy
sudo teensy-loader-cli/teensy-loader-cli -mmcu=@MCU@ -w @TARGET_HEX@

exit 0