projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop Latest change lines, add initial support for Debian/squeeze
[grml-live.git]
/
etc
/
grml
/
fai
/
config
/
scripts
/
GRMLBASE
/
25-locales
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/25-locales
b/etc/grml/fai/config/scripts/GRMLBASE/25-locales
index
ded06de
..
c6c4390
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/25-locales
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/25-locales
@@
-4,13
+4,13
@@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Sat Nov 03 12:01:12 CET 2007 [mika]
################################################################################
set -e
################################################################################
set -e
-if [ -x $target/usr/sbin/localepurge ] ; then
- $ROOTCMD dpkg-reconfigure localepurge
+if [ -z "$ROOTCMD" ] ; then
+ echo "variable \$ROOTCMD not set, exiting to avoid any possible damage">&2
+ exit 1
fi
# use full locales setup only in classes GRML_FULL and LOCALES
fi
# use full locales setup only in classes GRML_FULL and LOCALES
@@
-22,6
+22,13
@@
else
cp $target/etc/locale.gen.minimal $target/etc/locale.gen
fi
cp $target/etc/locale.gen.minimal $target/etc/locale.gen
fi
+# make sure:
+# localepurge localepurge/nopurge multiselect ....
+# is set so localepurge works as expected
+if [ -x $target/usr/sbin/localepurge ] ; then
+ $ROOTCMD dpkg-reconfigure -f noninteractive localepurge
+fi
+
if [ -x $target/usr/sbin/locale-gen ] ; then
$ROOTCMD locale-gen
else
if [ -x $target/usr/sbin/locale-gen ] ; then
$ROOTCMD locale-gen
else
@@
-32,5
+39,13
@@
if [ -x $target/usr/sbin/localepurge ] ; then
$ROOTCMD localepurge
fi
$ROOTCMD localepurge
fi
+# get rid of LC_MESSAGES unless using class LOCALES
+if ! ifclass LOCALES ; then
+ echo 'Removing /usr/share/locale'
+ $ROOTCMD rm -rf /usr/share/locale
+ $ROOTCMD mkdir /usr/share/locale
+ # TODO: /usr/share/i18n/locales
+fi
+
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3