diff --git a/tools/validate-links.sh b/tools/validate-links.sh new file mode 100755 index 0000000000..d9415f8a74 --- /dev/null +++ b/tools/validate-links.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") +cd "$(dirname "$REAL_PATH")/.." + +echo "Checking for broken links" +if find . -type l -exec test ! -e {} \; -print | egrep '.*'; then + exit 1 +fi