diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-08-12 22:03:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-08-12 22:03:05 +0000 |
commit | 7e5201d17ca4aaa612d76057e0cd7fac458c2dde (patch) | |
tree | dd2d240af67bcfa5413517418eb81724182bcbdf | |
parent | 5e0029e71c6dccc26bc42132f7f689c71e696aa7 (diff) | |
download | drakx-backup-do-not-use-7e5201d17ca4aaa612d76057e0cd7fac458c2dde.tar drakx-backup-do-not-use-7e5201d17ca4aaa612d76057e0cd7fac458c2dde.tar.gz drakx-backup-do-not-use-7e5201d17ca4aaa612d76057e0cd7fac458c2dde.tar.bz2 drakx-backup-do-not-use-7e5201d17ca4aaa612d76057e0cd7fac458c2dde.tar.xz drakx-backup-do-not-use-7e5201d17ca4aaa612d76057e0cd7fac458c2dde.zip |
po->mo is no longer gonna be nasty with us
-rw-r--r-- | perl-install/Makefile | 9 | ||||
-rw-r--r-- | perl-install/share/po/Makefile | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile index 8a5139f10..ae30be4dc 100644 --- a/perl-install/Makefile +++ b/perl-install/Makefile @@ -1,5 +1,8 @@ include Makefile.config +POFILES = $(shell ls share/po/*.po) +MOFILES = $(POFILES:%.po=%.mo) + .PHONY: all $(DIRS) install clean stage2 full_stage2 verify_c all: TAGS $(DIRS) @@ -31,6 +34,9 @@ test_pms: verify_c verify_c: ./verify_c $(PMS) +%.mo: %.po + msgfmt -o $@ $< + install_pms: $(DIRS) for i in `perl -ne 's/sub (\w+?)_? {.*/$$1/ and print' commands.pm` sync; do ln -sf commands $(DEST)/usr/bin/$$i; done @@ -50,7 +56,7 @@ install_pms: $(DIRS) chmod a+x $(DESTREP4PMS)/g_auto_install chmod a+x $(DESTREP4PMS)/live_install* -get_needed_files: $(DIRS) +get_needed_files: $(DIRS) $(MOFILES) # export PERL_INSTALL_TEST=1 ; strace -f -e trace=file -o '| grep -v "(No such file or directory)" | sed -e "s/[^\"]*\"//" -e "s/\".*//" | grep "^/" | grep -v -e "^/tmp" -e "^/home" -e "^/proc" -e "^/var" -e "^/dev" -e "^/etc" -e "^/usr/lib/rpm" > /tmp/list ' $(PERL) -d install2 < /dev/null eval `perl -V:version`; \ cat share/list `../tools/specific_arch share/list` | \ @@ -139,7 +145,6 @@ endif for i in ../all.modules/modules.cz*; do cp -f $$i $(DEST)/lib/; done - touch share/po/DrakX.pot share/po/*.po $(MAKE) -C share/po install NAME=libDrakX LOCALEDIR=$(DEST)/usr/share/locale_special # echo -e '#!/bin/sh\n\nexec "/usr/bin/sh"' > $(DEST)/usr/bin/runinstall2 diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile index 20fa8f1f0..43b32542a 100644 --- a/perl-install/share/po/Makefile +++ b/perl-install/share/po/Makefile @@ -29,7 +29,7 @@ DrakX.pot: $(PMSFILES) rm $(PMSCFILES) perl i18n_compssUsers 2>/dev/null >> $@ -install: $(MOFILES) +install: for l in $(LANGS); do \ install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ |