Mercurial > hg > beaglert
comparison scripts/build_pd_heavy.sh @ 428:b27676f871d7 prerelease
Some more sh compatiblity things: no &>, no 'function'
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 16 Jun 2016 19:20:22 +0100 |
parents | 99de323c13b3 |
children | 2e01a9d6cb58 |
comparison
equal
deleted
inserted
replaced
427:fd948111f8ea | 428:b27676f871d7 |
---|---|
27 RUN_WITHOUT_SCREEN=1 | 27 RUN_WITHOUT_SCREEN=1 |
28 BELA_PYTHON27= | 28 BELA_PYTHON27= |
29 | 29 |
30 if [ -z "$BELA_PYTHON27" ]; then | 30 if [ -z "$BELA_PYTHON27" ]; then |
31 for PY in python python2.7 ; do | 31 for PY in python python2.7 ; do |
32 python --version 2>&1 | grep "2\.7" &> /dev/null | 32 python --version 2>&1 | grep "2\.7" >/dev/null 2>&1 |
33 if [ $? -eq 0 ]; then | 33 if [ $? -eq 0 ]; then |
34 BELA_PYTHON27=$PY | 34 BELA_PYTHON27=$PY |
35 break; | 35 break; |
36 fi; | 36 fi; |
37 done; | 37 done; |
102 | 102 |
103 function uploadBuildRun(){ | 103 function uploadBuildRun(){ |
104 if [ $NO_UPLOAD -eq 0 ]; then | 104 if [ $NO_UPLOAD -eq 0 ]; then |
105 # remove old static files to avoid obsolete errors | 105 # remove old static files to avoid obsolete errors |
106 # use -rf to prevent warnings in case they do not exist | 106 # use -rf to prevent warnings in case they do not exist |
107 rm -rf "$projectpath"/Hv* "$projectpath"/Message* "$projectpath"/Control* "$projectpath"/Signal* &>/dev/null | 107 rm -rf "$projectpath"/Hv* "$projectpath"/Message* "$projectpath"/Control* "$projectpath"/Signal* >/dev/null 2>&1 |
108 | 108 |
109 # invoke the online compiler | 109 # invoke the online compiler |
110 "$BELA_PYTHON27" hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath" $RELEASE_STRING; | 110 "$BELA_PYTHON27" hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath" $RELEASE_STRING; |
111 if [ $? -ne 0 ]; then | 111 if [ $? -ne 0 ]; then |
112 #echo "ERROR: an error occurred while executing the uploader.py script" | 112 #echo "ERROR: an error occurred while executing the uploader.py script" |