5 echo "Setting up localized iceweasel search plugins"
7 # Link localized Tails searchplugins to the proper localization directories:
8 # e.g. files in '/usr/share/amnesia/iceweasel/searchplugins/locale/es' will be
9 # linked in '/etc/iceweasel/searchplugins/locale/es-AR',
10 # '/etc/iceweasel/searchplugins/locale/es-ES', etc.
16 find /usr
/lib
/iceweasel
/browser
/extensions
-maxdepth 1 -type f
-name 'langpack-*@iceweasel.mozilla.org.xpi' -printf "%P\n" |
17 sed -n -e "s/^langpack-\($locale\)\(-[A-Z]\+\)\?@iceweasel.mozilla.org.xpi/\1\2/p"
20 for LANGUAGE
in $
(find /usr
/share
/amnesia
/iceweasel
/searchplugins
/locale
-maxdepth 1 -type d
-printf "%P\n"); do
21 LOCALES
="$(locales_for_lang "$LANGUAGE")"
22 if [ -z "$LOCALES" ]; then
23 echo "Unable to find a matching locale for $LANGUAGE." >&2
26 for LOCALE
in $LOCALES; do
27 mkdir
-p /etc
/iceweasel
/searchplugins
/locale
/$LOCALE
28 for SEARCHPLUGIN
in $
(find "/usr/share/amnesia/iceweasel/searchplugins/locale/$LANGUAGE" -maxdepth 1 -type f
); do
29 ln -s "$SEARCHPLUGIN" /etc
/iceweasel
/searchplugins
/locale
/$LOCALE