summaryrefslogtreecommitdiffstats
path: root/src/oh-architecture.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-15 16:04:31 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-15 16:04:31 (EST)
commit29f1b60a31e0582f5cb9bc9120c226bccebf476a (patch)
tree95f58ba72a0bd2db6dd369e124558dc59c198124 /src/oh-architecture.sh
parent1df513c462d70f9c2b7a07c29a6eb613993495f2 (diff)
Add -s and -B options to oh-architecture.
Diffstat (limited to 'src/oh-architecture.sh')
-rw-r--r--src/oh-architecture.sh10
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