diff options
author | Trevor Woerner <twoerner@gmail.com> | 2012-01-31 17:15:34 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2012-02-02 16:50:56 -0500 |
commit | 43cdf15f36b6068cc2a7ab73bdc13aa758bf4892 (patch) | |
tree | cfff7e0ce3de156d0ccb6b83f81b81089f54c04d | |
parent | f6ebb6cfdc647250971bb9bea2ce91e345d0fc8e (diff) |
build.sh: make --autoresume and -o mutually exclusive
The '--autoresume' option tells the build to continue on with where it last
left off while building a set of modules. The '-o' option tells the build to
build just the one module. These two options don't make a lot of sense when
specified together. This patch looks for the scenario where both these
options are specified and errors out since there is a good chance the build
will not behave as the user expects.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rwxr-xr-x | build.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1202,6 +1202,11 @@ do NOQUIT=1 ;; -o) + if [ -n "$BUILT_MODULES_FILE" ]; then + echo "The '-o' and '--autoresume' options are mutually exclusive." + usage + exit 1 + fi required_arg $1 $2 shift RESUME=$1 @@ -1216,6 +1221,11 @@ do SUDO=$1 ;; --autoresume) + if [ -n "$BUILD_ONE" ]; then + echo "The '-o' and '--autoresume' options are mutually exclusive." + usage + exit 1 + fi required_arg $1 $2 shift BUILT_MODULES_FILE=$1 |