File: ispell

package info (click to toggle)
cruft-ng 0.9.78
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,904 kB
  • sloc: cpp: 1,748; sh: 816; python: 262; makefile: 97; ansic: 82; perl: 75
file content (20 lines) | stat: -rwxr-xr-x 713 bytes parent folder | download
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