From 4e6cb1e9143de1378b3e6bbd1113703c6f935d9e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 10 Oct 2013 08:53:12 +0200 Subject: [PATCH] Add list of blacklisted words. --- doc/BLACKLIST | 3 +++ doc/mkdoc.sh | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 doc/BLACKLIST diff --git a/doc/BLACKLIST b/doc/BLACKLIST new file mode 100644 index 000000000..ba68a50aa --- /dev/null +++ b/doc/BLACKLIST @@ -0,0 +1,3 @@ +seperate +logic +magic diff --git a/doc/mkdoc.sh b/doc/mkdoc.sh index d36983655..94a526f03 100755 --- a/doc/mkdoc.sh +++ b/doc/mkdoc.sh @@ -1,5 +1,13 @@ #!/bin/sh cd -- `dirname $0` + +for badword in $(cat BLACKLIST); do + if grep $badword *.md; then + echo "Documentation contains banned word." + exit 1 + fi +done + cat <