From 859ca3c1a7c2b63e3b96a0d3a9d7203bb42cc574 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sun, 1 Aug 2010 20:12:34 +0200 Subject: [compile] do nothing in compile if the build directory is undefined. This makes it possible to use the default compile stage for packages that have no sources. Signed-off-by: Michael Olbrich --- scripts/lib/ptxd_make_world_compile.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/lib/ptxd_make_world_compile.sh') diff --git a/scripts/lib/ptxd_make_world_compile.sh b/scripts/lib/ptxd_make_world_compile.sh index 3647e8248..b325d45b1 100644 --- a/scripts/lib/ptxd_make_world_compile.sh +++ b/scripts/lib/ptxd_make_world_compile.sh @@ -13,6 +13,11 @@ ptxd_make_world_compile() { ptxd_make_world_init && + if [ -z "${pkg_build_dir}" ]; then + # no build dir -> assume the package has nothing to build. + return + fi && + eval \ "${pkg_path}" \ "${pkg_env}" \ -- cgit v1.2.3