Last active
January 15, 2018 17:19
-
-
Save Nagasaki45/c237e85a6c30faf29e9daac681e07309 to your computer and use it in GitHub Desktop.
Manage your Bela project easily
This file contains hidden or 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
#!/usr/bin/env bash | |
# Stop Bela upon keyboard interrupts | |
stop_bela() { | |
ssh [email protected] "cd ~/Bela && make stop" | |
} | |
trap stop_bela SIGINT | |
# Main thingy: upload compile and start | |
scp -rp $1 [email protected]:~/Bela/projects/ | |
ssh [email protected] "cd ~/Bela && make Bela PROJECT=$1 && make run PROJECT=$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment