aboutsummaryrefslogtreecommitdiff
path: root/debian/locale-en-bs.prerm
blob: 72c2729337d7f2a511562846e154528df5dd908d (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
#!/bin/sh
set -e

fix1() {
   grep -qE 'en_BS' $1 && sed -i -r -e '/en_BS/d' $1
}

case "${1}" in
   remove|deconfigure)
      localedef --quiet --delete-from-archive en_US.utf8
      fix1 /usr/share/i18n/SUPPORTED
      fix1 /etc/locale.gen
      locale-gen
   ;;

   upgrade)
   ;;

   failed-upgrade)
   ;;

   *)
      echo "prerm called with unknown argument '\$1'" 1>&2
      exit 1
   ;;
esac

#DEBHELPER#

exit 0
bgstack15