Mercurial > hg > beaglert
diff scripts/build_pd.sh @ 192:1402f22fc99a
merge
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 03 Feb 2016 01:21:41 +0000 |
parents | 3b8a28edae41 |
children | b5d59cf94c64 |
line wrap: on
line diff
--- a/scripts/build_pd.sh Wed Feb 03 01:18:30 2016 +0000 +++ b/scripts/build_pd.sh Wed Feb 03 01:21:41 2016 +0000 @@ -51,6 +51,9 @@ shift done +# remove old static files to avoid obsolete errors +rm "$projectpath"/Hv* "$projectpath"/Message* "$projectpath"/Control* "$projectpath"/Signal* &>/dev/null + /usr/bin/python hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath"/; if [ $? -ne 0 ]; then /usr/local/bin/python hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath"/; @@ -66,10 +69,16 @@ # check how to copy/sync render.cpp file... if [ $render -eq 0 ]; then - rsync "hvresources/render.cpp" $projectpath/ --ignore-existing; + cp "hvresources/render.cpp" $projectpath/; fi; -rsync -c -r "$projectpath"/ "$BBB_ADDRESS":"$BBB_PATH"/source; +cp "hvresources/HvUtils.h" $projectpath/; + +echo "updating files on board..." + +rsync -c -r --exclude 'HvContext*' "$projectpath"/ "$BBB_ADDRESS":"$BBB_PATH"/source; + +scp "$projectpath"/HvContext* "$BBB_ADDRESS":"$BBB_PATH"/source; if [ $? -ne 0 ]; then echo "";