From d5d421b39a8b62158a7e0b5e0541680923ea5aff Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 4 Oct 2018 23:42:59 -0400 Subject: [PATCH] travis: complain about dangling symlinks --- build-scripts/travis.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build-scripts/travis.sh b/build-scripts/travis.sh index a7b6a4b82b..4b9eaa97ad 100755 --- a/build-scripts/travis.sh +++ b/build-scripts/travis.sh @@ -384,6 +384,10 @@ install_dnsdist() { run "sudo chmod 0755 /var/agentx" } +check_for_dangling_symlinks() { + run '! find -L . -name missing-sources -prune -o ! -name pubsuffix.cc -type l | grep .' +} + build_auth() { run "autoreconf -vi" run "./configure \ @@ -422,6 +426,9 @@ build_ixfrdist() { build_recursor() { export PDNS_RECURSOR_DIR=$HOME/pdns_recursor + run "cd pdns/recursordist" + check_for_dangling_symlinks + run "cd ../.." # distribution build run "./build-scripts/dist-recursor" run "cd pdns/recursordist" @@ -442,6 +449,9 @@ build_recursor() { } build_dnsdist(){ + run "cd pdns/dnsdistdist" + check_for_dangling_symlinks + run "cd ../.." run "./build-scripts/dist-dnsdist" run "cd pdns/dnsdistdist" run "tar xf dnsdist*.tar.bz2" -- 2.47.2