From: Michael Tremer Date: Tue, 26 Jan 2010 19:45:57 +0000 (+0100) Subject: QA: Check for directories that should not be there. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5705a8adda8257384668e459784862f73a4edd68;p=ipfire-3.x.git QA: Check for directories that should not be there. --- diff --git a/tools/quality-agent.d/095-directory-layout b/tools/quality-agent.d/095-directory-layout new file mode 100755 index 000000000..88b502bee --- /dev/null +++ b/tools/quality-agent.d/095-directory-layout @@ -0,0 +1,21 @@ +#!/bin/bash + +. $(dirname ${0})/qa-include + +function check() { + local dir=${1} + + log " ...${dir}" + + if [ -d "${BUILDROOT}/${dir}" ]; then + log "ERROR: This directory should not be there: ${dir}" + exit 1 + fi +} + +log "Check directory layout" + +log " Checking for directories that should not be there" +check /usr/man + +exit 0