summaryrefslogtreecommitdiff
path: root/scripts/boot/misc-helpers.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-06-05 16:16:58 +0200
committerDaniel Baumann <daniel@debian.org>2012-06-05 19:35:49 +0200
commitdc6d1a0b26dae2b2197631bb4f94738a289e7b8a (patch)
tree10b8ae8dcc98d2c34d016c0509c1e553ad6fbd75 /scripts/boot/misc-helpers.sh
parenta89bf1dc9bef0b4f62541e29e6b7684af39569bc (diff)
downloadlive-boot-dc6d1a0b26dae2b2197631bb4f94738a289e7b8a.tar.gz
live-boot-dc6d1a0b26dae2b2197631bb4f94738a289e7b8a.zip
Removing dead lang2locale function and associated files, not used anywhere.
Diffstat (limited to 'scripts/boot/misc-helpers.sh')
-rwxr-xr-xscripts/boot/misc-helpers.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/boot/misc-helpers.sh b/scripts/boot/misc-helpers.sh
index 3f2d7fb..abb2dd2 100755
--- a/scripts/boot/misc-helpers.sh
+++ b/scripts/boot/misc-helpers.sh
@@ -17,35 +17,6 @@ really_export ()
eval export "${STRING}"="${VALUE}"
}
-lang2locale() {
- langpart="${1%%_*}"
- if [ "$1" != "C" ]; then
- # Match the language code with 3rd field in languagelist
- line=$(grep -v "^#" /usr/share/live-boot/languagelist | cut -f1,3,6 -d\; | grep -v ';C$' | grep "^$langpart;")
- if [ -n "$line" ]; then
- if [ "$(echo "$line" | grep -c '')" -gt 1 ]; then
- # More than one match; try matching the
- # country as well.
- countrypart="${1#*_}"
- if [ "$countrypart" = "$1" ]; then
- countryline="$(echo "$line" | head -n1)"
- echo "${countryline##*;}"
- return
- fi
- countrypart="${countrypart%%[@.]*}"
- countryline="$(echo "$line" | grep ";$countrypart;" | head -n1 || true)"
- if [ "$countryline" ]; then
- echo "${countryline##*;}"
- return
- fi
- fi
- echo "${line##*;}"
- fi
- else
- echo "C"
- fi
-}
-
is_in_list_separator_helper () {
local sep=${1}
shift