diff scripts/run_project.sh @ 377:a430a16d2c02 prerelease

Updated scripts so that the Bela folder on the bbb is ~/Bela. Note: BeagleRT_startup.sh is still the same (because the reference to it needs to be changed in /etc/init.d/ ....
author Giulio Moro <giuliomoro@yahoo.it>
date Sat, 11 Jun 2016 01:54:43 +0100
parents 8e0dee85b73a
children 99de323c13b3
line wrap: on
line diff
--- a/scripts/run_project.sh	Fri Jun 10 00:56:49 2016 +0100
+++ b/scripts/run_project.sh	Sat Jun 11 01:54:43 2016 +0100
@@ -1,11 +1,11 @@
 #!/bin/bash
 #
-# This script runs an already-compiled BeagleRT project on the
+# This script runs an already-compiled Bela project on the
 # BeagleBone Black.
 
 [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2"
-[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/BeagleRT/"
-[ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="BeagleRT"
+[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/Bela/"
+[ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="Bela"
 [ -z "$RUN_PROJECT" ] && RUN_PROJECT=1
 [ -z "$COMMAND_ARGS" ] && COMMAND_ARGS=
 [ -z "$RUN_IN_FOREGROUND" ] && RUN_IN_FOREGROUND=1
@@ -19,10 +19,10 @@
     echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [-c command-line-args] [-fF]"
 
     echo "
-    This script runs a previously compiled BeagleRT project on the 
+    This script runs a previously compiled Bela project on the 
     BeagleBone Black. The -b option changes the default path, which
     is otherwise $BBB_BELA_HOME. The -c option passes command-line arguments
-    to the BeagleRT program; enclose the argument string in quotes.
+    to the Bela program; enclose the argument string in quotes.
 	
     The -f argument runs the project in the foreground of the current terminal,
     within a screen session that can be detached later. The -F argument runs
@@ -60,13 +60,10 @@
 echo "Running $BBB_PROJECT_NAME..."
 if [ $RUN_WITHOUT_SCREEN -ne 0 ]
 then
-    echo ssh $BBB_ADDRESS "$MAKE_COMMAND run"
     ssh $BBB_ADDRESS "$MAKE_COMMAND run"
 elif [ $RUN_IN_FOREGROUND -eq 0 ]
 then
-    echo ssh $BBB_ADDRESS "$MAKE_COMMAND runscreenfg"
     ssh $BBB_ADDRESS "$MAKE_COMMAND runscreenfg"
 else
-    echo ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen"
     ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen"
 fi