From 534f2f4437093bd78411126ef45de41fc6b93bf3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 7 Jun 2007 18:54:11 +0000 Subject: reimport my latest checkout --- po/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 po/Makefile (limited to 'po/Makefile') diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 0000000..d4a06ff --- /dev/null +++ b/po/Makefile @@ -0,0 +1,22 @@ +POFILES = $(wildcard *.po) +TEXTS = $(addsuffix .tr,$(basename $(wildcard *.po))) + +PRODUCT ?= "SUSE Linux 10.1" + +all: text.inc $(TEXTS) + +# the po2txt script requires that the po file has no fuzzy entries +# and the same comments as the pot file; so we do a msgfmt/msgunfmt/msgmerge +# to ensure that +%.tr: %.po text.inc + msgfmt $< -o - | msgunfmt | \ + msgmerge --no-fuzzy-matching - bootloader.pot > tmpfile.po && \ + bin/po2txt --product=$(PRODUCT) tmpfile.po >$@ + echo rm -f tmpfile.po + +# en.tr uses msgids from bootloader.pot +en.tr text.inc: bootloader.pot + bin/po2txt --product=$(PRODUCT) $< >en.tr + +clean: + rm -f text.inc *.tr *~ -- cgit v1.2.1