summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/14-add_localized_iceweasel_searchplugins
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/14-add_localized_iceweasel_searchplugins')
-rwxr-xr-xconfig/chroot_local-hooks/14-add_localized_iceweasel_searchplugins32
1 files changed, 0 insertions, 32 deletions
diff --git a/config/chroot_local-hooks/14-add_localized_iceweasel_searchplugins b/config/chroot_local-hooks/14-add_localized_iceweasel_searchplugins
deleted file mode 100755
index 46df1c6..0000000
--- a/config/chroot_local-hooks/14-add_localized_iceweasel_searchplugins
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-set -e
-
-echo "Setting up localized iceweasel search plugins"
-
-# Link localized Tails searchplugins to the proper localization directories:
-# e.g. files in '/usr/share/amnesia/iceweasel/searchplugins/locale/es' will be
-# linked in '/etc/iceweasel/searchplugins/locale/es-AR',
-# '/etc/iceweasel/searchplugins/locale/es-ES', etc.
-
-locales_for_lang() {
- local locale="$1"
- local langpacks
-
- find /usr/lib/iceweasel/browser/extensions -maxdepth 1 -type f -name 'langpack-*@iceweasel.mozilla.org.xpi' -printf "%P\n" |
- sed -n -e "s/^langpack-\($locale\)\(-[A-Z]\+\)\?@iceweasel.mozilla.org.xpi/\1\2/p"
-}
-
-for LANGUAGE in $(find /usr/share/amnesia/iceweasel/searchplugins/locale -maxdepth 1 -type d -printf "%P\n"); do
- LOCALES="$(locales_for_lang "$LANGUAGE")"
- if [ -z "$LOCALES" ]; then
- echo "Unable to find a matching locale for $LANGUAGE." >&2
- exit 1
- fi
- for LOCALE in $LOCALES; do
- mkdir -p /etc/iceweasel/searchplugins/locale/$LOCALE
- for SEARCHPLUGIN in $(find "/usr/share/amnesia/iceweasel/searchplugins/locale/$LANGUAGE" -maxdepth 1 -type f); do
- ln -s "$SEARCHPLUGIN" /etc/iceweasel/searchplugins/locale/$LOCALE
- done
- done
-done