summaryrefslogtreecommitdiffstats
path: root/bin/gen-DSA
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2012-09-05 17:37:28 +0000
committerRaphael Geissert <geissert@debian.org>2012-09-05 17:37:28 +0000
commit60c6bcc7f935f9da2490c346c1c8cec06650140d (patch)
tree5120d61ead235b8f6b5eed88d030abf3540f622e /bin/gen-DSA
parent2389de736cdfcc08ca882ef91dd65c72ebe0c1ab (diff)
Check the vulnerability description for spelling mistakes
Supported spell-checkers: aspell, enchant git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@20098 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-xbin/gen-DSA12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA
index b10a329517..f745ac1c76 100755
--- a/bin/gen-DSA
+++ b/bin/gen-DSA
@@ -118,6 +118,18 @@ if dsa_exists "$DSAID"; then
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"

© 2014-2024 Faster IT GmbH | imprint | privacy policy