Mercurial > hg > beaglert
comparison scripts/build_project.sh @ 330:276a8517da13 prerelease
build_project now updates the date of the files on the bbb
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 04 Jun 2016 15:23:52 +0100 |
parents | b99b8ab317dd |
children | 75689b7cd57b |
comparison
equal
deleted
inserted
replaced
329:9a2a5f14b587 | 330:276a8517da13 |
---|---|
109 #and copy over all the files again and recompile them | 109 #and copy over all the files again and recompile them |
110 ssh bbb "make -C $BBB_BELA_HOME sourceclean PROJECT=$BBB_PROJECT_NAME"; | 110 ssh bbb "make -C $BBB_BELA_HOME sourceclean PROJECT=$BBB_PROJECT_NAME"; |
111 scp $HOST_SOURCE_PATH "$BBB_NETWORK_TARGET_FOLDER" | 111 scp $HOST_SOURCE_PATH "$BBB_NETWORK_TARGET_FOLDER" |
112 else | 112 else |
113 #rsync --delete makes sure it removes files that are not in the origin folder | 113 #rsync --delete makes sure it removes files that are not in the origin folder |
114 rsync -av --delete-after --exclude=build $HOST_SOURCE_PATH"/" "$BBB_NETWORK_TARGET_FOLDER/" #trailing slashes used here make sure rsync does not create another folder inside the target folder | 114 rsync -ogprv --delete-after --exclude=build $HOST_SOURCE_PATH"/" "$BBB_NETWORK_TARGET_FOLDER/" #trailing slashes used here make sure rsync does not create another folder inside the target folder |
115 fi; | 115 fi; |
116 | 116 |
117 if [ $? -ne 0 ] | 117 if [ $? -ne 0 ] |
118 then | 118 then |
119 echo "Error while copying files" | 119 echo "Error while copying files" |
129 else | 129 else |
130 echo "Building and running project..." | 130 echo "Building and running project..." |
131 | 131 |
132 if [ $RUN_WITHOUT_SCREEN -ne 0 ] | 132 if [ $RUN_WITHOUT_SCREEN -ne 0 ] |
133 then | 133 then |
134 ssh -t $BBB_ADDRESS "$MAKE_COMMAND run" | 134 echo ssh -t $BBB_ADDRESS "$MAKE_COMMAND run" |
135 ssh -t $BBB_ADDRESS "$MAKE_COMMAND run" | |
135 elif [ $RUN_IN_FOREGROUND -eq 0 ] | 136 elif [ $RUN_IN_FOREGROUND -eq 0 ] |
136 then | 137 then |
138 echo ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen" | |
137 ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen" | 139 ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen" |
138 else | 140 else |
141 echo ssh -t $BBB_ADDRESS "$MAKE_COMMAND runscreenfg" | |
139 ssh -t $BBB_ADDRESS "$MAKE_COMMAND runscreenfg" | 142 ssh -t $BBB_ADDRESS "$MAKE_COMMAND runscreenfg" |
140 fi | 143 fi |
141 fi | 144 fi |