summaryrefslogtreecommitdiffstats
path: root/move/make_live
diff options
context:
space:
mode:
Diffstat (limited to 'move/make_live')
-rwxr-xr-xmove/make_live16
1 files changed, 7 insertions, 9 deletions
diff --git a/move/make_live b/move/make_live
index e9dc7ad45..5a092de09 100755
--- a/move/make_live
+++ b/move/make_live
@@ -3,9 +3,7 @@
use lib "../perl-install";
use common;
use pkgs;
-
-my @ALLOWED_LANGS = split(' ', first(cat_('move.pm') =~ /ALLOWED_LANGS = qw\((.*)\)/));
-my @langs = map { /^../; $& } @ALLOWED_LANGS;
+use lang;
@ARGV <= 1 or die "usage: make_live [live_location=/tmp/live_tree]\n";
@@ -17,7 +15,7 @@ my $kernel_version = do {
};
sub installPackages {
- output_p("$::prefix/etc/rpm/macros", "%_install_langs " . join(":", @langs) . "\n");
+ output_p("$::prefix/etc/rpm/macros", "%_install_langs all\n");
rename '/etc/rpm/macros', '/etc/rpm/macros.';
system('cp', "$::prefix/etc/rpm/macros", '/etc/rpm/macros');
@@ -79,7 +77,7 @@ sub installPackages {
my %compssUsersChoice = map { $_ => 1 } map { @{$_->{flags}} } values %{$o->{compssUsers}};
$compssUsersChoice{$_} = 1 foreach 'SYSTEM', 'DVD', 'USB', 'SOUND', 'BURNER', 'UTF8', 'DOCS', 'TV', '3D', 'INSTALL';
- $compssUsersChoice{qq(LOCALES"$_")} = 1 foreach @langs;
+ $compssUsersChoice{qq(LOCALES"$_")} = 1 foreach lang::list_langs();
#- we don't want those
foreach (qw(magicdev mdkonline)) {
@@ -120,7 +118,7 @@ sub config_X_proprietary_drivers {
substInFile { $_ = '' if /^nvidia$/ } "$::prefix/etc/modules";
}
-$::prefix = $ARGV[0] || '/tmp/live_tree';
+$::prefix = `make get_dest_livetree`;
print "Making live in $::prefix directory.\n";
eval { fs::umount("$::prefix/proc") };
@@ -220,11 +218,11 @@ run_program::rooted($::prefix, 'nspluginscan'); #- must be run before kbuildsyco
$ENV{HELP_BROWSER} = "kfmclient openProfile webbrowsing";
$ENV{BROWSER} = "kfmclient openProfile webbrowsing";
$ENV{DESKTOP} = "kde";
-foreach (@ALLOWED_LANGS) {
- $ENV{LC_ALL} = $_;
+foreach my $lang (lang::list_langs()) {
+ local $ENV{LC_ALL} = lang::getLANGUAGE($lang);
unlink "$::prefix/usr/share/services/ksycoca";
run_program::rooted($::prefix, 'kbuildsycoca', '--global');
- rename("$::prefix/usr/share/services/ksycoca", "$::prefix/usr/share/services/ksycoca-$_");
+ rename("$::prefix/usr/share/services/ksycoca", "$::prefix/usr/share/services/ksycoca-$lang");
}
symlinkf('/etc/X11/ksycoca', "$::prefix/usr/share/services/ksycoca");