Mercurial > hg > beaglert
comparison scripts/build_project.sh @ 263:7fe0d7c54bce prerelease
Inverted the meaning of the -f option
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 16 May 2016 15:13:20 +0100 |
parents | b491eb027f82 |
children | 60ccd1fe5a58 |
comparison
equal
deleted
inserted
replaced
262:b491eb027f82 | 263:7fe0d7c54bce |
---|---|
26 If the argument -n is passed, the output will not be run after compiling. | 26 If the argument -n is passed, the output will not be run after compiling. |
27 The argument -b will change the local path on the BeagleBone where the | 27 The argument -b will change the local path on the BeagleBone where the |
28 BeagleRT files are found. The -c option passes command-line arguments to | 28 BeagleRT files are found. The -c option passes command-line arguments to |
29 the BeagleRT program; enclose the argument string in quotes. | 29 the BeagleRT program; enclose the argument string in quotes. |
30 | 30 |
31 The -f argument runs the project in the foreground of the current terminal, | 31 By default, the project runs in the foreground of the current terminal, |
32 within a screen session that can be detached later. The -F argument runs | 32 within a screen session that can be detached later. The -F argument runs |
33 the project in the foreground of the current terminal, without screen, so | 33 the project in the foreground of the current terminal, without screen, so |
34 the output can be piped to another destination." | 34 the output can be piped to another destination. The -f argument runs it |
35 in a screen in the background, so no output is shown." | |
35 } | 36 } |
36 | 37 |
37 OPTIND=1 | 38 OPTIND=1 |
38 | 39 |
39 while getopts "b:c:nfFh" opt; do | 40 while getopts "b:c:nfFh" opt; do |
40 case $opt in | 41 case $opt in |
41 b) BBB_PATH=$OPTARG | 42 b) BBB_PATH=$OPTARG |
42 ;; | 43 ;; |
43 c) COMMAND_ARGS=$OPTARG | 44 c) COMMAND_ARGS=$OPTARG |
44 ;; | 45 ;; |
45 f) RUN_IN_FOREGROUND=1 | 46 f) RUN_IN_FOREGROUND=0 |
46 ;; | 47 ;; |
47 F) RUN_WITHOUT_SCREEN=1 | 48 F) RUN_WITHOUT_SCREEN=1 |
48 ;; | 49 ;; |
49 n) RUN_PROJECT=0 | 50 n) RUN_PROJECT=0 |
50 ;; | 51 ;; |