aboutsummaryrefslogtreecommitdiff
path: root/tools/validate-links.sh
blob: d9415f8a74240c39f531e53b01cc1c24166a2967 (plain)
1
2
3
4
5
6
7
8
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