comparison scripts/run_project.sh @ 360:8e0dee85b73a prerelease

Fixed run_project.sh
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 08 Jun 2016 22:19:54 +0100
parents ccd084cf22ac
children a430a16d2c02
comparison
equal deleted inserted replaced
359:58742af56d37 360:8e0dee85b73a
45 h|\?) usage 45 h|\?) usage
46 exit 1 46 exit 1
47 esac 47 esac
48 done 48 done
49 49
50 shift $((OPTIND-1))
51
50 if [ -z "$1" ] 52 if [ -z "$1" ]
51 then 53 then
52 BBB_PROJECT_NAME=$BBB_DEFAULT_PROJECT_NAME 54 BBB_PROJECT_NAME=$BBB_DEFAULT_PROJECT_NAME
53 else 55 else
54 BBB_PROJECT_NAME=$1 56 BBB_PROJECT_NAME=$1
55 fi 57 fi
56 58
57 shift $((OPTIND-1))
58
59 MAKE_COMMAND="make stop -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS'" 59 MAKE_COMMAND="make stop -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS'"
60 echo "Running $BBB_PROJECT_NAME..." 60 echo "Running $BBB_PROJECT_NAME..."
61 if [ $RUN_WITHOUT_SCREEN -ne 0 ] 61 if [ $RUN_WITHOUT_SCREEN -ne 0 ]
62 then 62 then
63 ssh -t $BBB_ADDRESS "$MAKE_COMMAND run" 63 echo ssh $BBB_ADDRESS "$MAKE_COMMAND run"
64 ssh $BBB_ADDRESS "$MAKE_COMMAND run"
64 elif [ $RUN_IN_FOREGROUND -eq 0 ] 65 elif [ $RUN_IN_FOREGROUND -eq 0 ]
65 then 66 then
67 echo ssh $BBB_ADDRESS "$MAKE_COMMAND runscreenfg"
66 ssh $BBB_ADDRESS "$MAKE_COMMAND runscreenfg" 68 ssh $BBB_ADDRESS "$MAKE_COMMAND runscreenfg"
67 else 69 else
68 ssh -t $BBB_ADDRESS "$MAKE_COMMAND runscreen" 70 echo ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen"
71 ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen"
69 fi 72 fi