From: Michael Tremer Date: Fri, 12 Nov 2010 17:56:15 +0000 (+0100) Subject: QA: Add check for compressed man pages. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94cfa1c687197a44bd5dfcbfc3d91e84c9e56cd;p=ipfire-3.x.git QA: Add check for compressed man pages. We do not want them because they are kinda ugly. --- diff --git a/tools/quality-agent.d/090-man-pages b/tools/quality-agent.d/090-man-pages new file mode 100755 index 000000000..29a0f05d2 --- /dev/null +++ b/tools/quality-agent.d/090-man-pages @@ -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 +