comparison scripts/.bela_common @ 525:1ca196e35105 prerelease

Upated scripts
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 23 Jun 2016 13:22:59 +0100
parents 42f6af3a5f1d
children 1c68ad13bbe4
comparison
equal deleted inserted replaced
524:9f455f01edd5 525:1ca196e35105
40 printf "\nERROR: the board does not respond at $BBB_ADDRESS, check that the address is correct and the board is connected.\n"; 40 printf "\nERROR: the board does not respond at $BBB_ADDRESS, check that the address is correct and the board is connected.\n";
41 exit 1; 41 exit 1;
42 } 42 }
43 } 43 }
44 44
45 build_script_usage_brief(){
46 printf "Usage: $THIS_SCRIPT [-c command-line-args] [-nbfF] [--watch] [--clean]%s <directory-with-source-files>" "$1"
47 }
48
45 build_script_usage(){ 49 build_script_usage(){
46 echo " The program can be run in one of the following modes: 50 echo " The program can be run in one of the following modes:
47 -f arg : runs in the foreground (default). 51 -f arg : runs in the foreground (default).
48 -b arg : runs in the background (no output is shown) 52 -b arg : runs in the background (no output is shown)
49 53
51 with ctrl-C. 55 with ctrl-C.
52 When running in the background, you can use \`./stop_running.sh' to stop 56 When running in the background, you can use \`./stop_running.sh' to stop
53 the current process and \`./connect_to_project.sh' to see the program's output. 57 the current process and \`./connect_to_project.sh' to see the program's output.
54 58
55 Other options: 59 Other options:
56 --clean : cleans the pre-compiled object files on the board (same as \`-m coreclean'). 60 --clean : cleans the pre-compiled object files on the board (same as \`-m projectclean').
57 If the linker issues warnings during a build, or you see that your latest changes are not 61 If the linker issues warnings during a build, or you see that your latest changes are not
58 being applied to the running program, try to add the --clean flag for the next build and see 62 being applied to the running program, try to add the --clean flag for the next build and see
59 if that fixes it. 63 if that fixes it.
60 64
61 --watch: the script will wait for changes in the source folder and when it detects them it 65 --watch: the script will wait for changes in the source folder and when it detects them it