]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
QA: Add check for compressed man pages.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Nov 2010 17:56:15 +0000 (18:56 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Nov 2010 17:56:15 +0000 (18:56 +0100)
We do not want them because they are kinda ugly.

tools/quality-agent.d/090-man-pages [new file with mode: 0755]

diff --git a/tools/quality-agent.d/090-man-pages b/tools/quality-agent.d/090-man-pages
new file mode 100755 (executable)
index 0000000..29a0f05
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. $(dirname ${0})/qa-include
+
+DESC="Decompressing man-pages..."
+
+function check() {
+       for file in $(find ${BUILDROOT}/usr/share/man -type f); do
+               log DEBUG "  Processing: ${file}"
+               if [[ ${file} =~ \.gz$ ]]; then
+                       gzip -d ${file}
+               fi
+       done
+}
+
+run
+