comparison scripts/build_pd_heavy.sh @ 347:d2ce15eed8c1 prerelease

Sets date on the board to ensure that heavy projects are recompiled
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 07 Jun 2016 17:29:54 +0100
parents 9a2a5f14b587
children 4fe4aa2cdfa2
comparison
equal deleted inserted replaced
345:0e1e0dfe24c5 347:d2ce15eed8c1
167 #produce a list of files which content has changed (not just the date) 167 #produce a list of files which content has changed (not just the date)
168 #TODO: could be made faster (perhaps) by backing up the folder locally instead of bbb 168 #TODO: could be made faster (perhaps) by backing up the folder locally instead of bbb
169 # UPDATED_FILES=`rsync -naic --log-format="%f" "$projectpath" "$BBB_BELA_HOME"/source | grep -v "\.$"` 169 # UPDATED_FILES=`rsync -naic --log-format="%f" "$projectpath" "$BBB_BELA_HOME"/source | grep -v "\.$"`
170 # echo "UPDATEDFILES : $UPDATED_FILES" 170 # echo "UPDATEDFILES : $UPDATED_FILES"
171 # exit 2 171 # exit 2
172 # remove old executable and heavy context .o/.d files 172 # sets the date, remove old executable and heavy context .o/.d files
173 ssh $BBB_ADDRESS "rm -rf "$BBB_PROJECT_FOLDER/$BBB_PROJECT_NAME; 173 ssh $BBB_ADDRESS "date -s '`date`' > /dev/null; rm -rf "$BBB_PROJECT_FOLDER/$BBB_PROJECT_NAME;
174 SCREEN_NAME=BeagleRT 174 SCREEN_NAME=BeagleRT
175 # Make new BeagleRT execut/able and run 175 # Make new BeagleRT execut/able and run
176 # It does not look very nice that we type the same things over and over 176 # It does not look very nice that we type the same things over and over
177 # but that is because each line is an ssh session in its own right 177 # but that is because each line is an ssh session in its own right
178 MAKE_COMMAND="make stop -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS'" 178 MAKE_COMMAND="make stop -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS'"