summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-02 07:28:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-02 07:28:11 (EDT)
commitac75cf3879e7060e0903e0d38f5e96bbabafb6f5 (patch)
tree22bd201c6438fbe08d4a186677d7d78876674580
parent6b74b2bea738ab933b52d13afb217c1b2ff6eb08 (diff)
Fix options handling and empty function body.
-rw-r--r--src/opkbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index bcb148e..44593dd 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -70,7 +70,8 @@ main()
oh_locale_set
oh_set_source_dir .
- get_options
+ get_options "${@}"
+ shift $(($OPTIND - 1))
if [ "${#}" -ne 0 ]; then
oh_usage
exit 1
@@ -171,7 +172,6 @@ get_options()
;;
esac
done
- shift $(($OPTIND - 1))
# Set default option values.
[ -z "${OPT_BUILD}" ] && OPT_BUILD=full
@@ -302,6 +302,7 @@ setup_build_flags()
setup_build_platform()
{
# TODO: Get build platform from opkg.
+ :
}
setup_host_arch()