blob: 9fe617e76f45df7be13a63a316b5a615c3b0baed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
en="en_GB-ise-w_accents"
info()
{
if [ -f "./manuals/ponysay.texinfo" ]; then
aspell --lang="$en" check "./manuals/ponysay.texinfo"
git add "./manuals/ponysay.texinfo"
elif [ -f "../manuals/ponysay.texinfo" ]; then
aspell --lang="$en" check "../manuals/ponysay.texinfo"
git add "../manuals/ponysay.texinfo"
else
echo "spell.sh: unable to find document: ponysay.texinfo" >&2
exit -1
fi
}
man()
{
lang="$1"
langarg="$1"
if [ ! "$lang" = "" ]; then
lang=".$lang"
else
langarg="$en"
fi
if [ -f "./manuals/manpage${lang}.6" ]; then
aspell --lang="${langarg}" check "./manuals/manpage${lang}.6"
git add "./manuals/manpage${lang}.6"
elif [ -f "../manuals/manpage${lang}.6" ]; then
aspell --lang="${langarg}" check "../manuals/manpage${lang}.6"
git add "../manuals/manpage${lang}.6"
else
echo "spell.sh: unable to find document: manpage${lang}.6" >&2
exit -1
fi
}
"$@"
|