]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
QA: Check for directories that should not be there.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Jan 2010 19:45:57 +0000 (20:45 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Jan 2010 19:45:57 +0000 (20:45 +0100)
tools/quality-agent.d/095-directory-layout [new file with mode: 0755]

diff --git a/tools/quality-agent.d/095-directory-layout b/tools/quality-agent.d/095-directory-layout
new file mode 100755 (executable)
index 0000000..88b502b
--- /dev/null
@@ -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