diff options
Diffstat (limited to 'src/oh-architecture.sh')
-rw-r--r-- | src/oh-architecture.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/oh-architecture.sh b/src/oh-architecture.sh index f822392..113854f 100644 --- a/src/oh-architecture.sh +++ b/src/oh-architecture.sh @@ -2,7 +2,7 @@ # # opkhelper # src/oh-architecture -# Prints build system architecture names. +# Print build system architecture names. # # Copyright (C) 2012 Patrick "P. J." McDermott # @@ -27,11 +27,17 @@ main() { oh_init - while getopts 'S:' opt; do + while getopts 's:S:B:' opt; do case "${opt}" in + s) + oh_set_buildsystem_option 'source-dir' "${OPTARG}" + ;; S) oh_set_buildsystem_option 'build-system' "${OPTARG}" ;; + B) + oh_set_buildsystem_option 'build-dir' "${OPTARG}" + ;; ?) ob_error "$(ob_get_msg 'bad_opt')" exit 1 |