From 29f1b60a31e0582f5cb9bc9120c226bccebf476a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 15 Nov 2012 16:04:31 -0500 Subject: Add -s and -B options to oh-architecture. --- 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 -- cgit v0.9.1