2013-07-01 07:50:07 +00:00
|
|
|
!#/usr/bin/env bash
|
2012-08-15 18:45:08 +00:00
|
|
|
|
2013-07-01 07:50:07 +00:00
|
|
|
en="en_GB-ise-w_accents"
|
2012-08-15 18:45:08 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-12-05 03:00:23 +00:00
|
|
|
if [ -f "./manuals/manpage${lang}.0" ]; then
|
|
|
|
aspell --lang="${langarg}" check "./manuals/manpage${lang}.0"
|
|
|
|
git add "./manuals/manpage${lang}.0"
|
|
|
|
elif [ -f "../manuals/manpage${lang}.0" ]; then
|
|
|
|
aspell --lang="${langarg}" check "../manuals/manpage${lang}.0"
|
|
|
|
git add "../manuals/manpage${lang}.0"
|
2012-08-15 18:45:08 +00:00
|
|
|
else
|
2012-12-05 03:00:23 +00:00
|
|
|
echo "spell.sh: unable to find document: manpage${lang}.0" >&2
|
2012-08-15 18:45:08 +00:00
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
"$@"
|