summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-07-09 04:46:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-07-09 04:46:04 +0000
commit9beb4ea0991570f8e528c960692923f30e1e6ff6 (patch)
treed79683efc2420603d6562028abe8604158308ea9
parent29befffc2d3f771ded66883f7a79f0327f1ea165 (diff)
downloaddrakx-9beb4ea0991570f8e528c960692923f30e1e6ff6.tar
drakx-9beb4ea0991570f8e528c960692923f30e1e6ff6.tar.gz
drakx-9beb4ea0991570f8e528c960692923f30e1e6ff6.tar.bz2
drakx-9beb4ea0991570f8e528c960692923f30e1e6ff6.tar.xz
drakx-9beb4ea0991570f8e528c960692923f30e1e6ff6.zip
replace lang::get_unneeded_png_lang_files() with lang::png_lang_files
-rw-r--r--perl-install/Makefile5
-rw-r--r--perl-install/lang.pm5
2 files changed, 8 insertions, 2 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index 3c20cbb38..253d5e880 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -104,6 +104,7 @@ get_needed_files: $(DIRS) mo_files
install -d $(DEST)/usr/lib
install -d $(DEST)/usr/$(LIB)
install -d $(DEST)/usr/share
+ install -d $(DEST)/usr/share/langs
install -d $(DEST)/usr/share/gtk
install -d $(DEST)/usr/share/xmodmap
install -d $(DEST)/usr/X11R6/lib/X11
@@ -168,8 +169,8 @@ endif
cd share ; cp -a consolefonts devices symlinks $(DEST)/usr/share
-cd share ; cp -f *.png $(DEST)/usr/share
- -cd pixmaps ; cp -af *.png *.xpm langs $(DEST)/usr/share ; rm -f $(DEST)/usr/share/wiz_*
- unneeded=`perl -I. -Mlang -e 'lang::get_unneeded_png_lang_files'`; cd $(DEST)/usr/share; rm -f $$unneeded
+ -cd pixmaps ; cp -af *.png *.xpm $(DEST)/usr/share ; rm -f $(DEST)/usr/share/wiz_*
+ cp `perl -I. -Mlang -e 'lang::png_lang_files()'` $(DEST)/usr/share/langs
cd share ; cp compssUsers compssUsers.* rpmsrate $(ROOTDEST)/Mandrake/base
clean-rpmsrate $(ROOTDEST)/Mandrake/base/rpmsrate $(ROOTDEST)/Mandrake/RPMS*
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 44b620de1..90f9e2bd4 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1171,6 +1171,11 @@ sub during_install__l2charset {
uc($c);
}
+#- used in Makefile
+sub png_lang_files() {
+ print join(' ', map { "pixmaps/langs/lang-$_.png" } list_langs());
+}
+
sub check() {
$^W = 0;
my $ok = 1;