Mercurial > hg > beaglert
comparison scripts/run_pd_libpd.sh @ 462:d9a4fc5357e7 prerelease
Path-relativeness of scripts has been improved. At least update_board will work when double clicked
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 20 Jun 2016 14:09:43 +0100 |
parents | e49ae69acbe8 |
children |
comparison
equal
deleted
inserted
replaced
461:26b3b87437fb | 462:d9a4fc5357e7 |
---|---|
2 # | 2 # |
3 # This script compiles a Bela project on the BeagleBone Black and | 3 # This script compiles a Bela project on the BeagleBone Black and |
4 # optionally runs it. Pass a directory path in the first argument. | 4 # optionally runs it. Pass a directory path in the first argument. |
5 # The source files in this directory are copied to the board and compiled. | 5 # The source files in this directory are copied to the board and compiled. |
6 | 6 |
7 BBB_ADDRESS="root@192.168.7.2" | 7 SCRIPTDIR=$(dirname "$0") |
8 BBB_LIBPD_EXECUTABLE_PATH="~/libpd/Bela" | 8 [ -z $SCRIPTDIR ] && SCRIPTDIR="./" || SCRIPTDIR=$SCRIPTDIR/ |
9 BBB_LIBPD_PROJECT_PATH="~/libpd/source/" | 9 . $SCRIPTDIR.bela_common || { echo "You must be in Bela/scripts to run these scripts" | exit 1; } |
10 | |
10 RUN_PROJECT=1 | 11 RUN_PROJECT=1 |
11 COMMAND_ARGS= | 12 COMMAND_ARGS= |
12 RUN_IN_FOREGROUND=0 | 13 RUN_IN_FOREGROUND=0 |
13 RUN_WITHOUT_SCREEN=0 | 14 RUN_WITHOUT_SCREEN=0 |
14 | 15 |