comparison scripts/build_pd_heavy.sh @ 462:d9a4fc5357e7 prerelease

Path-relativeness of scripts has been improved. At least update_board will work when double clicked
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 20 Jun 2016 14:09:43 +0100
parents 86591d203c78
children 2a0b468ce1dd
comparison
equal deleted inserted replaced
461:26b3b87437fb 462:d9a4fc5357e7
19 RUN_PROJECT=1 19 RUN_PROJECT=1
20 RUN_IN_FOREGROUND=0 20 RUN_IN_FOREGROUND=0
21 RUN_WITHOUT_SCREEN=1 21 RUN_WITHOUT_SCREEN=1
22 BELA_PYTHON27= 22 BELA_PYTHON27=
23 23
24 . ./.bela_common || exit 1 24 SCRIPTDIR=$(dirname "$0")
25 [ -z $SCRIPTDIR ] && SCRIPTDIR="./" || SCRIPTDIR=$SCRIPTDIR/
26 . $SCRIPTDIR.bela_common || { echo "You must be in Bela/scripts to run these scripts" | exit 1; }
25 27
26 if [ -z "$BELA_PYTHON27" ]; then 28 if [ -z "$BELA_PYTHON27" ]; then
27 for PY in python python2.7 ; do 29 for PY in python python2.7 ; do
28 python --version 2>&1 | grep "2\.7" >/dev/null 2>&1 30 python --version 2>&1 | grep "2\.7" >/dev/null 2>&1
29 if [ $? -eq 0 ]; then 31 if [ $? -eq 0 ]; then
114 do 116 do
115 rm -rf "$projectpath"/$file 117 rm -rf "$projectpath"/$file
116 done 118 done
117 119
118 # invoke the online compiler 120 # invoke the online compiler
119 echo "$BELA_PYTHON27" hvresources/uploader.py "$pdpath"/ -n $ENZIENAUDIO_COM_PATCH_NAME -g c -o "$projectpath" $RELEASE_STRING 121 "$BELA_PYTHON27" $SCRIPTDIR/hvresources/uploader.py "$pdpath"/ -n $ENZIENAUDIO_COM_PATCH_NAME -g c -o "$projectpath" $RELEASE_STRING ||\
120 "$BELA_PYTHON27" hvresources/uploader.py "$pdpath"/ -n $ENZIENAUDIO_COM_PATCH_NAME -g c -o "$projectpath" $RELEASE_STRING ||\
121 { echo "ERROR: an error occurred while executing the uploader.py script"; exit 1; } 122 { echo "ERROR: an error occurred while executing the uploader.py script"; exit 1; }
122 fi; 123 fi;
123 124
124 echo ""; 125 echo "";
125 126