From: Amos Jeffries Date: Mon, 6 Jul 2009 03:12:39 +0000 (+1200) Subject: Prevent dead language aliases being created X-Git-Tag: SQUID_3_2_0_1~911 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe7fb1926556132d7ab62b3146199835fe6613bc;p=thirdparty%2Fsquid.git Prevent dead language aliases being created --- diff --git a/errors/alias-link.sh b/errors/alias-link.sh index 10d1c21ca9..384a9e1836 100755 --- a/errors/alias-link.sh +++ b/errors/alias-link.sh @@ -28,6 +28,12 @@ while read base aliases; do if test "${base}" = "#" || test "${base}" = ""; then continue; fi + # ignore destination languages that do not exist. (no dead links) + if ! test -x ${DIR}/${base} ; then + echo "WARNING: ${base} translations do not exist. Nothing to do for: ${aliases}" + continue; + fi + # split aliases based on whitespace and create a symlink for each # Remove and replace any pre-existing content/link for alia in ${aliases}; do