Mercurial > hg > beaglert
comparison scripts/build_project.sh @ 425:99de323c13b3 prerelease
Scripts use sh instead of bash. Some fixes in run_project and build_project
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 16 Jun 2016 15:55:03 +0100 |
parents | a430a16d2c02 |
children | 2e01a9d6cb58 |
comparison
equal
deleted
inserted
replaced
424:9614e2f4b76e | 425:99de323c13b3 |
---|---|
1 #!/bin/bash | 1 #!/bin/sh |
2 # | 2 # |
3 # This script compiles a Bela project on the BeagleBone Black and | 3 # This script compiles a Bela project on the BeagleBone Black and |
4 # optionally runs it. Pass a directory path in the first argument. | 4 # optionally runs it. Pass a directory path in the first argument. |
5 # The source files in this directory are copied to the board and compiled. | 5 # The source files in this directory are copied to the board and compiled. |
6 | 6 |
28 The source directory should contain at least one .c, .cpp or .S file. | 28 The source directory should contain at least one .c, .cpp or .S file. |
29 If the argument -n is passed, the output will not be run after compiling. | 29 If the argument -n is passed, the output will not be run after compiling. |
30 The -c option passes command-line arguments to | 30 The -c option passes command-line arguments to |
31 the Bela program; enclose the argument string in quotes. | 31 the Bela program; enclose the argument string in quotes. |
32 | 32 |
33 -p arg : sets the name of the project to run (default: $BBB_PROJECT_NAME ) | |
34 | |
33 By default, the project runs in the foreground of the current terminal, | 35 By default, the project runs in the foreground of the current terminal, |
34 within a screen session that can be detached later. The -f argument runs | 36 within a screen session that can be detached later. The -f argument runs |
35 the project in the foreground of the current terminal, without screen, so | 37 the project in the foreground of the current terminal, without screen, so |
36 the output can be piped to another destination. The -b argument runs it | 38 the output can be piped to another destination. The -b argument runs it |
37 in a screen in the background, so no output is shown. The -m argument allows | 39 in a screen in the background, so no output is shown. The -m argument allows |
38 to pass arguments to the Makefile before the run target. For instance, | 40 to pass arguments to the Makefile before the run target. For instance, |
39 pass -m \`"projectclean"\` or \`-m "distclean"\` to clean project-specific pre-built | 41 pass -m \`"projectclean"\` or \`-m "distclean"\` to clean project-specific |
40 objects, or all the pre-built objects, respectively." | 42 pre-built objects, or all the pre-built objects, respectively." |
41 } | 43 } |
42 | 44 |
43 OPTIND=1 | 45 OPTIND=1 |
44 | 46 |
45 while getopts "bc:m:nfFhp:" opt; do | 47 while getopts "bc:m:nfFhp:" opt; do |