diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-18 21:21:27 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-19 10:53:55 +0100 |
commit | 2db515176dd8c886a2b1e02ee1cf7178ee0614f6 (patch) | |
tree | 7a8977894a1ab02d09a58d550ab034d229843355 /scripts/lib/ptxd_make_world_common.sh | |
parent | 9b3c6147c02c7dd2ac7c9def5aeebe5c0176d625 (diff) | |
download | ptxdist-2db515176dd8c886a2b1e02ee1cf7178ee0614f6.tar.gz ptxdist-2db515176dd8c886a2b1e02ee1cf7178ee0614f6.tar.xz |
[ptxd_make_world_common] use case instead of if for pkg_build_dir decision
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_common.sh | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index b0b29d95e..da52f846a 100644 --- a/scripts/lib/ptxd_make_world_common.sh +++ b/scripts/lib/ptxd_make_world_common.sh @@ -252,22 +252,22 @@ ptxd_make_world_init() { # build dir # if [ -z "${pkg_build_dir}" ]; then - if [ "${pkg_conf_tool}" = "cmake" ]; then - # cmake based pkg -> _always_ out of tree - pkg_build_dir="${pkg_dir}-build" - - elif [ "${pkg_conf_tool}" = "autoconf" ]; then - # autotoolizied pkg - case "${pkg_build_oot}" in - "YES") pkg_build_dir="${pkg_dir}-build" ;; - "NO") pkg_build_dir="${pkg_conf_dir}" ;; - "") pkg_build_dir="${pkg_conf_dir}" ;; - *) ptxd_bailout "<PKG>_BUILD_OOT: please set to YES or NO" ;; - esac - else - # std pkg - pkg_build_dir="${pkg_conf_dir}" - fi + case "${pkg_conf_tool}" in + cmake) # cmake based pkg -> _always_ out of tree + pkg_build_dir="${pkg_dir}-build" + ;; + autoconf) # autotoolizied pkg + case "${pkg_build_oot}" in + "YES") pkg_build_dir="${pkg_dir}-build" ;; + "NO") pkg_build_dir="${pkg_conf_dir}" ;; + "") pkg_build_dir="${pkg_conf_dir}" ;; + *) ptxd_bailout "<PKG>_BUILD_OOT: please set to YES or NO" ;; + esac + ;; + *) # qmake or std pkg + pkg_build_dir="${pkg_conf_dir}" + ;; + esac fi # |