comparison scripts/update_board @ 437:2e058007c6bc prerelease

update_board better parsing of user input, press a key to continue to improve experience of double-clickers
author Giulio Moro <giuliomoro@yahoo.it>
date Sat, 18 Jun 2016 02:21:04 +0100
parents 26f3ecfdf3ad
children e49ae69acbe8
comparison
equal deleted inserted replaced
435:cea66c2af560 437:2e058007c6bc
96 if [ $ALWAYS_YES -eq 1 ]; 96 if [ $ALWAYS_YES -eq 1 ];
97 then 97 then
98 printf "y\n" 98 printf "y\n"
99 else 99 else
100 read REPLY; 100 read REPLY;
101 [ $REPLY != y ] && [ $REPLY != Y ] && { echo "Aborting..."; exit 1; } 101 [ -z $REPLY ] || { [ $REPLY != y ] && [ $REPLY != Y ]; } && { echo "Aborting..."; exit 1; }
102 fi 102 fi
103 else 103 else
104 echo "Installing Bela core code in $BBB_ADDRESS:$BBB_BELA_HOME" 104 echo "Installing Bela core code in $BBB_ADDRESS:$BBB_BELA_HOME"
105 fi 105 fi
106 106
145 printf "Creating directory structure on BeagleBone..." 145 printf "Creating directory structure on BeagleBone..."
146 ssh $BBB_ADDRESS "mkdir -p $BBB_BELA_HOME/build/core $BBB_BELA_HOME/projects" 146 ssh $BBB_ADDRESS "mkdir -p $BBB_BELA_HOME/build/core $BBB_BELA_HOME/projects"
147 error_handler $? 147 error_handler $?
148 148
149 printf "Generating on-board documentation..." 149 printf "Generating on-board documentation..."
150 ssh $BBB_ADDRESS "cd $BBB_BELA_HOME; doxygen &> /dev/null" 150 #ssh $BBB_ADDRESS "cd $BBB_BELA_HOME; doxygen &> /dev/null"
151 error_handler $? "\nError while generating Doxygen documentation\n" 151 error_handler $? "\nError while generating Doxygen documentation\n"
152 152
153 #------------- 153 #-------------
154 #Installing IDE 154 #Installing IDE
155 [ $ALWAYS_YES -eq 0 ] && ALWAYS_YES_FLAG= || ALWAYS_YES_FLAG="-y" 155 [ $ALWAYS_YES -eq 0 ] && ALWAYS_YES_FLAG= || ALWAYS_YES_FLAG="-y"
168 " 168 "
169 fi 169 fi
170 170
171 ssh $BBB_ADDRESS make -C $BBB_BELA_HOME --no-print-directory idestartup nostartup && echo "The board will now run the IDE at startup, but startup of the Bela program has been disabled. To enable it, use the set_startup.sh script" 171 ssh $BBB_ADDRESS make -C $BBB_BELA_HOME --no-print-directory idestartup nostartup && echo "The board will now run the IDE at startup, but startup of the Bela program has been disabled. To enable it, use the set_startup.sh script"
172 172
173 173 { [ $ALWAYS_YES -eq 1 ] || [ $SHLVL -ge 1 ]; } && printf "\nSetup complete.\n\n" || {
174 printf '\nSetup complete, press any key to continue\n\n'
175 read
176 }