Skip to content

Instantly share code, notes, and snippets.

@keplersj
Last active January 28, 2017 00:51
Show Gist options
  • Save keplersj/6fc1364cc97e750b270f198a2a6f285f to your computer and use it in GitHub Desktop.
Save keplersj/6fc1364cc97e750b270f198a2a6f285f to your computer and use it in GitHub Desktop.
Linux and macOS CTRE Talon install script.
curl -O https://gist.github.com/keplersj/6fc1364cc97e750b270f198a2a6f285f/raw/4ddcf51b026b7e49ac11f29368fac756c50b1dc0/ctre_java_install.sh
bash ctre_java_install.sh
#!/usr/bin/env sh
export CTRE_FILE=CTRE_FRCLibs_NON-WINDOWS_v4.4.1.9
curl -o /tmp/$CTRE_FILE.zip http://www.ctr-electronics.com//downloads/lib/$CTRE_FILE.zip
unzip /tmp/$CTRE_FILE.zip -d /tmp/$CTRE_FILE
mv /tmp/$CTRE_FILE/Robotbuilder/CAN\ Talon ~/Robotbuilder/extensions/CAN\ Talon
mv /tmp/$CTRE_FILE/java/docs ~/wpilib/java/current/docs
mv /tmp/$CTRE_FILE/java/lib/* ~/wpilib/java/current/lib/
rm /tmp/$CTRE_FILE.zip
rm -rf /tmp/$CTRE_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment