Mercurial > hg > beaglert
comparison scripts/update_board @ 504:b6eb94378ca9 prerelease
update_board
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 22 Jun 2016 01:24:55 +0100 |
parents | 89212ad6a0bf |
children | 116cbb0e2bd4 |
comparison
equal
deleted
inserted
replaced
503:04212032c779 | 504:b6eb94378ca9 |
---|---|
186 #Installing IDE | 186 #Installing IDE |
187 | 187 |
188 if [ $UPDATE_IDE -eq 1 ] | 188 if [ $UPDATE_IDE -eq 1 ] |
189 then | 189 then |
190 [ $ALWAYS_YES -eq 0 ] && ALWAYS_YES_FLAG= || ALWAYS_YES_FLAG="-y" | 190 [ $ALWAYS_YES -eq 0 ] && ALWAYS_YES_FLAG= || ALWAYS_YES_FLAG="-y" |
191 [ $FULL -eq 1 ] && NO_FRILLS_FLAG= || NO_FRILLS_FLAG="--no-frills" | |
192 ls $IDE_FOLDER/scripts/update_IDE >/dev/null 2>/dev/null | 191 ls $IDE_FOLDER/scripts/update_IDE >/dev/null 2>/dev/null |
193 if [ $? -eq 0 ] | 192 if [ $? -eq 0 ] |
194 then | 193 then |
195 export BBB_ADDRESS BBB_BELA_HOME | 194 export BBB_ADDRESS BBB_BELA_HOME |
196 cd $IDE_FOLDER/scripts && ./update_IDE $ALWAYS_YES_FLAG $NO_FRILLS_FLAG | 195 cd $IDE_FOLDER/scripts && ./update_IDE $ALWAYS_YES_FLAG --no-frills |
196 | |
197 # The IDE is restarted by the update_IDE script | 197 # The IDE is restarted by the update_IDE script |
198 else | 198 else |
199 # run the IDE | 199 # run the IDE |
200 printf "\nThe Bela core files were updated on the board, but a valid IDE folder was not found in $IDE_FOLDER/, so the IDE was not updated. | 200 printf "\nThe Bela core files were updated on the board, but a valid IDE folder was not found in $IDE_FOLDER/, so the IDE was not updated. |
201 You can get a copy of the most up-to-date IDE files from https://github.com/LBDonovan/bela-ide\n" | 201 You can get a copy of the most up-to-date IDE files from https://github.com/LBDonovan/bela-ide\n" |
205 else | 205 else |
206 echo "Not updating the IDE" | 206 echo "Not updating the IDE" |
207 fi | 207 fi |
208 [ $FULL -eq 1 ] && ssh $BBB_ADDRESS make -C $BBB_BELA_HOME --no-print-directory idestartup nostartup && printf "The board will now run the IDE at startup, but startup of the Bela program has been disabled.\nTo enable it, use the set_startup.sh script.\nTo control the ide use the ide.sh script\n" | 208 [ $FULL -eq 1 ] && ssh $BBB_ADDRESS make -C $BBB_BELA_HOME --no-print-directory idestartup nostartup && printf "The board will now run the IDE at startup, but startup of the Bela program has been disabled.\nTo enable it, use the set_startup.sh script.\nTo control the ide use the ide.sh script\n" |
209 | 209 |
210 [ $ALWAYS_YES -eq 1 ] && printf "\nSetup complete.\n\n" || { | 210 [ $ALWAYS_YES -eq 1 ] && printf "\nCore setup complete.\n\n" || { |
211 printf '\nSetup complete, press any key to continue . . .\n\n' | 211 printf '\nSetup complete, press any key to continue . . .\n\n' |
212 read | 212 read |
213 } | 213 } |