diff options
Diffstat (limited to 'gettext-tiny.pkg')
-rw-r--r-- | gettext-tiny.pkg/postinst | 8 | ||||
-rw-r--r-- | gettext-tiny.pkg/prerm | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gettext-tiny.pkg/postinst b/gettext-tiny.pkg/postinst new file mode 100644 index 0000000..b13ccb1 --- /dev/null +++ b/gettext-tiny.pkg/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ x"${1}" = x'configure' ]; then + for link in autopoint msgfmt msgmerge xgettext; do + update-alternatives --install "/usr/bin/${link}" "${link}" \ + "/usr/bin/${link}.tiny" 10 + done +fi diff --git a/gettext-tiny.pkg/prerm b/gettext-tiny.pkg/prerm new file mode 100644 index 0000000..f3213c2 --- /dev/null +++ b/gettext-tiny.pkg/prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ x"${1}" = x'remove' ]; then + for link in autopoint msgfmt msgmerge xgettext; do + update-alternatives --remove "${link}" "/usr/bin/${link}.tiny" + done +fi |