summaryrefslogtreecommitdiffstats
path: root/move/make_live_tree_boot
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-14 14:40:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-14 14:40:50 +0000
commitb87c9886955c9dd465f979ab34bd2898739e7b9e (patch)
treef2f99471342a13206cbccbafcf69557ad1bdf895 /move/make_live_tree_boot
parent7b38d205afe78fc218a845d586c9a13c61230304 (diff)
downloaddrakx-b87c9886955c9dd465f979ab34bd2898739e7b9e.tar
drakx-b87c9886955c9dd465f979ab34bd2898739e7b9e.tar.gz
drakx-b87c9886955c9dd465f979ab34bd2898739e7b9e.tar.bz2
drakx-b87c9886955c9dd465f979ab34bd2898739e7b9e.tar.xz
drakx-b87c9886955c9dd465f979ab34bd2898739e7b9e.zip
un-share shared i18n files
(currently /usr/share/locale/{es,it,en_US}/LC_CTYPE) that way, no need to have live_tree_always_i18n_iso_8859_1.clp and live_tree_always_i18n_iso_8859_15.clp used by live_tree_always_i18n_en_US.clp, live_tree_always_i18n_es.clp, live_tree_always_i18n_it.clp
Diffstat (limited to 'move/make_live_tree_boot')
-rwxr-xr-xmove/make_live_tree_boot10
1 files changed, 9 insertions, 1 deletions
diff --git a/move/make_live_tree_boot b/move/make_live_tree_boot
index 73422dab5..379f60c8d 100755
--- a/move/make_live_tree_boot
+++ b/move/make_live_tree_boot
@@ -127,7 +127,15 @@ if (!@ARGV) {
create_light_tree('boot', \@boot_list);
create_light_tree('totem', \@totem_list);
foreach my $lang (@ALLOWED_LANGS) {
- my @list = map { my $s = $_; $s =~ s/__LANG__/$lang/; if_(-e $s, $s) } @always_i18n_list;
+ my @list = map {
+ my $s = $_;
+ $s =~ s/__LANG__/$lang/;
+ if (readlink($s) =~ m!^[^/]!) {
+ system('cp', $s, "$s-");
+ rename "$s-", $s;
+ }
+ if_(-e $s, $s);
+ } @always_i18n_list;
create_light_tree("always_i18n_$lang", \@list);
}
create_totem_links('totem', \@totem_list_orig);