Some updates for sanity checks

This commit is contained in:
DarkFeather 2023-10-21 20:40:03 -05:00
parent c988f725fb
commit 017d13681e
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
# Enforce each of the lines
linenum=0
for line in compile install clean uninstall test checkperm diff reverse; do
newlinenum="$(grep -nE "^$line:" "Makefile" | cut -f 1 -d ':')"

View File

@ -39,7 +39,8 @@ for file in $files; do
done
# Case 3: Spelling errors are present
spellerrors="$(cat "$file" | aspell -p <(echo personal_ws-1.1 en 0; cat ~/.vim/spell/en.utf-8.add) list)"
# aspell --lang=en create master $HOME/.aspell.en.pws < $HOME/.vim/spell/en.utf-8.add
spellerrors="$(cat "$file" | aspell -p <(echo personal_ws-1.1 en 0; cat $HOME/.vim/spell/en.utf-8.add) list)"
if [ `echo "$spellerrors" | wc -l` -ne 1 ]; then
echo "$file" has spelling errors.
echo "$spellerrors"