comparison scripts/update_board.sh @ 415:947cb6ef73e7 prerelease

update_board creates remote folder tree
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 16 Jun 2016 02:01:05 +0100
parents d874b5696078
children 4fb06ca94e02
comparison
equal deleted inserted replaced
414:fc470c216464 415:947cb6ef73e7
20 THIS_SCRIPT=`basename "$0"` 20 THIS_SCRIPT=`basename "$0"`
21 echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [--clean] [-y]" 21 echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [--clean] [-y]"
22 22
23 echo " 23 echo "
24 This script updates the core Bela files on the BeagleBone, bringing it up 24 This script updates the core Bela files on the BeagleBone, bringing it up
25 to date with the files in the folder on the host comouter. 25 to date with the files in the folder on the host computer.
26 The script must be run once to initialize the board before running any of 26 The script must be run once to initialize the board before running any of
27 the other scripts in this directory. It must also be run every time you 27 the other scripts in this directory. It must also be run every time you
28 wish to update the core code. 28 wish to update the core code.
29 Running this script will discard all changes to the core code on the remote 29 Running this script will discard all changes to the core code on the remote
30 end. 30 end.
130 fi 130 fi
131 error_handler $? 131 error_handler $?
132 132
133 # Create remaining directories needed for building 133 # Create remaining directories needed for building
134 printf "Creating directory structure on BeagleBone..." 134 printf "Creating directory structure on BeagleBone..."
135 #ssh $BBB_ADDRESS "mkdir -p $BBB_BELA_HOME/build ; mkdir -p $BBB_BELA_HOME/build/core ; mkdir -p $BBB_BELA_HOME/build/projects; mkdir -p $BBB_BELA_HOME/projects" 135 ssh $BBB_ADDRESS "mkdir -p $BBB_BELA_HOME/build/core $BBB_BELA_HOME/projects"
136 error_handler $? 136 error_handler $?
137 137
138 printf "Generating on-board documentation..." 138 printf "Generating on-board documentation..."
139 ssh $BBB_ADDRESS "cd $BBB_BELA_HOME; doxygen &>/dev/null" 139 ssh $BBB_ADDRESS "cd $BBB_BELA_HOME; doxygen &>/dev/null"
140 error_handler $? "\nError while generating Doxygen documentation\n" 140 error_handler $? "\nError while generating Doxygen documentation\n"