[Secure-testing-commits] r20098 - bin
Raphael Geissert
geissert at alioth.debian.org
Wed Sep 5 17:37:28 UTC 2012
Author: geissert
Date: 2012-09-05 17:37:28 +0000 (Wed, 05 Sep 2012)
New Revision: 20098
Modified:
bin/gen-DSA
Log:
Check the vulnerability description for spelling mistakes
Supported spell-checkers: aspell, enchant
Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA 2012-09-05 16:04:44 UTC (rev 20097)
+++ bin/gen-DSA 2012-09-05 17:37:28 UTC (rev 20098)
@@ -118,6 +118,18 @@
exit 1
fi
+if which aspell >/dev/null && echo test | aspell -l en list 2>/dev/null; then
+ echo "$VULNERABILITY" | aspell -l en list |
+ while read word; do
+ echo "Possible spelling mistake: $word!" >&2
+ done
+elif which enchant >/dev/null && echo test | enchant -l -d en 2>/dev/null; then
+ echo "$VULNERABILITY" | enchant -l -d en |
+ while read word; do
+ echo "Possible spelling mistake: $word!" >&2
+ done
+fi
+
setvar() {
local var="$1" value="$2"
More information about the Secure-testing-commits
mailing list