Mercurial > hg > beaglert
comparison scripts/build_pd_heavy.sh @ 525:1ca196e35105 prerelease
Upated scripts
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 23 Jun 2016 13:22:59 +0100 |
parents | 42f6af3a5f1d |
children | c301cc07ae11 |
comparison
equal
deleted
inserted
replaced
524:9f455f01edd5 | 525:1ca196e35105 |
---|---|
33 fi; | 33 fi; |
34 | 34 |
35 | 35 |
36 usage () | 36 usage () |
37 { | 37 { |
38 build_script_usage_brief ' [-o] [--noupload] [-r|--release release] ' | |
38 echo " | 39 echo " |
39 USAGE: build_pd.sh [[-i input folder containing _main.pd file ] | 40 example: build_pd.sh -o ../projects/heavy/hello-world ../projects/heavy/pd/hello-world |
40 [-o output folder for temp heavy project .c files (default $projectpath)] | 41 |
41 [-b remote path to copy to (default ~/Bela)] | [-h] | [-w|--watch] | [-n|--noupload] | [-r|--release arg] | 42 -r allows to build against a specific Heavy release. Default is the |
42 | 43 most recent release ( see revision list here https://enzienaudio.com/a/releases ) |
43 example: build_pd.sh -o ../projects/heavy/hello-world ../projects/heavy/pd/hello-world | |
44 | |
45 -r allows to build against a specific Heavy release. Default is the most recent version. | |
46 " | 44 " |
47 build_script_usage | 45 build_script_usage |
48 } | 46 } |
49 | 47 |
50 | 48 |
76 -p) | 74 -p) |
77 shift | 75 shift |
78 BBB_PROJECT_NAME="$1" | 76 BBB_PROJECT_NAME="$1" |
79 ;; | 77 ;; |
80 --clean) | 78 --clean) |
81 BBB_MAKEFILE_OPTIONS="$BBB_MAKEFILE_OPTIONS clean" | 79 BBB_MAKEFILE_OPTIONS="$BBB_MAKEFILE_OPTIONS projectclean" |
82 ;; | 80 ;; |
83 -m) | 81 -m) |
84 shift | 82 shift |
85 BBB_MAKEFILE_OPTIONS="BBB_MAKEFILE_OPTIONS $1" | 83 BBB_MAKEFILE_OPTIONS="$BBB_MAKEFILE_OPTIONS $1" |
86 ;; | 84 ;; |
87 --watch) | 85 --watch) |
88 WATCH=1 | 86 WATCH=1 |
89 ;; | 87 ;; |
90 -o | --output ) | 88 -o | --output ) |
139 for file in $HEAVY_FILES | 137 for file in $HEAVY_FILES |
140 do | 138 do |
141 rm -rf "$projectpath"/$file | 139 rm -rf "$projectpath"/$file |
142 done | 140 done |
143 # invoke the online compiler | 141 # invoke the online compiler |
144 echo "$BELA_PYTHON27" $HVRESOURCES_DIR/uploader.py "$pdpath"/ -n $ENZIENAUDIO_COM_PATCH_NAME -g c -o "$projectpath" $RELEASE_STRING | |
145 "$BELA_PYTHON27" $HVRESOURCES_DIR/uploader.py "$pdpath"/ -n $ENZIENAUDIO_COM_PATCH_NAME -g c -o "$projectpath" $RELEASE_STRING ||\ | 142 "$BELA_PYTHON27" $HVRESOURCES_DIR/uploader.py "$pdpath"/ -n $ENZIENAUDIO_COM_PATCH_NAME -g c -o "$projectpath" $RELEASE_STRING ||\ |
146 { echo "ERROR: an error occurred while executing the uploader.py script"; exit 1; } | 143 { echo "ERROR: an error occurred while executing the uploader.py script"; exit 1; } |
147 fi; | 144 fi; |
148 | 145 |
149 echo ""; | 146 echo ""; |
195 # ssh $BBB_ADDRESS "rm -rf "$BBB_PROJECT_FOLDER/$BBB_PROJECT_NAME; | 192 # ssh $BBB_ADDRESS "rm -rf "$BBB_PROJECT_FOLDER/$BBB_PROJECT_NAME; |
196 #fi; | 193 #fi; |
197 # Make new Bela executable and run | 194 # Make new Bela executable and run |
198 # It does not look very nice that we type the same things over and over | 195 # It does not look very nice that we type the same things over and over |
199 # but that is because each line is an ssh session in its own right | 196 # but that is because each line is an ssh session in its own right |
200 MAKE_COMMAND="make stop -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS'" | 197 MAKE_COMMAND="make --no-print-directory QUIET=true -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS' $BBB_MAKEFILE_OPTIONS" |
201 if [ $RUN_PROJECT -eq 0 ] | 198 if [ $RUN_PROJECT -eq 0 ] |
202 then | 199 then |
203 echo "Building project..." | 200 echo "Building project..." |
204 ssh $BBB_ADDRESS "$MAKE_COMMAND" | 201 ssh $BBB_ADDRESS "$MAKE_COMMAND" |
205 else | 202 else |