summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-11-06 14:53:36 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-11-07 09:44:21 +0100
commit8124140087fadb52e87ab4e65f1cc7113292e39b (patch)
tree7829bd7f9a0fcbf2b9f3038579fad389f4f25101 /scripts/lib
parentead1b25c7dd82e9ea86590971297e69f1459e45e (diff)
downloadptxdist-8124140087fadb52e87ab4e65f1cc7113292e39b.tar.gz
ptxdist-8124140087fadb52e87ab4e65f1cc7113292e39b.tar.xz
ptxd_make_world_autogen: fail if autogen.sh is broken
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/ptxd_make_world_patchin.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
index 90f457412..9e406d8ad 100644
--- a/scripts/lib/ptxd_make_world_patchin.sh
+++ b/scripts/lib/ptxd_make_world_patchin.sh
@@ -404,6 +404,9 @@ ptxd_make_world_autogen() {
# look for autogen.sh
local pkg_patch_autogen="${pkg_patch_dir}/autogen.sh"
if [ ! -x "${pkg_patch_autogen}" ]; then
+ if [ -e "${pkg_patch_autogen}" -o -L "${pkg_patch_autogen}" ]; then
+ ptxd_bailout "'$(ptxd_print_path "${pkg_patch_autogen}")' is not executable or a broken link"
+ fi
unset pkg_patch_autogen
fi