From 22f80292bfe0c3dda4e107fce8d7fbdd68b6c21d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 08 Oct 2012 13:28:22 -0400 Subject: Make -T option effective. --- diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 87c2b3d..fbda51c 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -180,15 +180,10 @@ get_options() [ -z "${opt_check_build_deps}" ] && opt_check_build_deps='true' [ -z "${opt_uid0_cmd}" ] && opt_uid0_cmd='fakeroot' - # Set default target and cleaning behavior. + # Set cleaning behavior. if [ -n "${opt_target}" ]; then [ -z "${opt_clean}" ] && opt_clean='false' else - if [ "${opt_build}" = 'full' ]; then - opt_target='binary' - else - opt_target="${opt_build}" - fi [ -z "${opt_clean}" ] && opt_clean='true' fi } @@ -308,8 +303,18 @@ setup_build() build() { - ../build build - ${opt_uid0_cmd} ../build install + case "${opt_target}" in + '') + ../build build + ${opt_uid0_cmd} ../build install + ;; + 'install'|'install-'*) + ${opt_uid0_cmd} ../build "${opt_target}" + ;; + *) + ../build "${opt_target}" + ;; + esac ob-installdocs ob-gencontrol -- cgit v0.9.1