summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-12 22:03:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-12 22:03:05 +0000
commit7e5201d17ca4aaa612d76057e0cd7fac458c2dde (patch)
treedd2d240af67bcfa5413517418eb81724182bcbdf /perl-install/Makefile
parent5e0029e71c6dccc26bc42132f7f689c71e696aa7 (diff)
downloaddrakx-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
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile9
1 files changed, 7 insertions, 2 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