From 36846794abebbb98bb0d960398ff55c66856c64a Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sat, 5 Mar 2022 15:36:37 -0500 Subject: add dpkg recipe and readme --- debian/locale-en-bs.prerm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 debian/locale-en-bs.prerm (limited to 'debian/locale-en-bs.prerm') diff --git a/debian/locale-en-bs.prerm b/debian/locale-en-bs.prerm new file mode 100644 index 0000000..72c2729 --- /dev/null +++ b/debian/locale-en-bs.prerm @@ -0,0 +1,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 -- cgit