1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/bin/sh
test -z "$CRUFT_ROOT" || exit 0
set -eu
dpkg-query --showformat '${db:Status-Abbrev} ${Package} ${binary:Synopsis}\n' --show 'i*' | while read -r status package desc
do
[ "$status" = "un" ] && continue
[ "$package" = "ispell" ] && continue
case $desc in
*spell*)
lang=${package#?}
test -f "/usr/lib/ispell/$lang.hash" && echo "/usr/lib/ispell/$lang.hash"
test -f "/var/lib/ispell/$lang.compat" && echo "/var/lib/ispell/$lang.compat"
test -f "/var/lib/ispell/$lang.hash" && echo "/var/lib/ispell/$lang.hash"
test -f "/var/lib/ispell/$lang.remove" && echo "/var/lib/ispell/$lang.remove"
;;
esac
done
|