From ac75cf3879e7060e0903e0d38f5e96bbabafb6f5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 02 Aug 2012 07:28:11 -0400 Subject: Fix options handling and empty function body. --- 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() -- cgit v0.9.1