]> git.donarmstrong.com Git - kiibohd-controller.git/blob - LoadFile/load
Windows is now working with libusb1.0 for the teensy-loader-cli.
[kiibohd-controller.git] / LoadFile / load
1 #!/bin/bash
2
3 #| First check to see teensy-loader-cli has been compiled
4 if [ ! -e teensy-loader-cli/teensy-loader-cli ]; then
5         # Compile teensy-loader-cli
6         mkdir -p teensy-loader-cli
7         cd teensy-loader-cli
8         cmake -G "Unix Makefiles" @CMAKE_SOURCE_DIR@/LoadFile
9         make
10         cd -
11 fi
12
13 #| Loads the hex file onto the teensy
14 sudo teensy-loader-cli/teensy-loader-cli -mmcu=@MCU@ -w @TARGET_HEX@
15
16 exit 0
17