diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:08 +0000 |
commit | 5ce8d30439463838f845c78bc926cc9b310a8743 (patch) | |
tree | bb1852dc58711c7baee31216a765067dfa49b65b /po/Makefile | |
parent | 10658e71475bd964263d09f1a661f24fadfaf496 (diff) | |
download | bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.gz bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.bz2 bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.xz bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.zip |
imported openSUSE.tar.bz2 (from gfxboot-4.1.19-2.1.src.rpm)4.1.19.1
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/po/Makefile b/po/Makefile index d561e83..b120b47 100644 --- a/po/Makefile +++ b/po/Makefile @@ -1,33 +1,19 @@ POFILES = $(wildcard *.po) TEXTS = $(addsuffix .tr,$(basename $(wildcard *.po))) -PGOAL= bootloader -PRODUCT ?= "SUSE Linux 10.1" +PRODUCT = $(shell perl -ne 'print if s/^product=//' ../config) -all: text.inc $(TEXTS) +all: .ready + +.ready: text.inc $(TEXTS) + @touch .ready -# 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 - $(PGOAL).pot > tmpfile.po && \ - bin/po2txt --product=$(PRODUCT) tmpfile.po >$@ - echo rm -f tmpfile.po + bin/po2txt --product='$(PRODUCT)' $< >$@ -# en.tr uses msgids from $(PGOAL).pot -en.tr text.inc: $(PGOAL).pot - bin/po2txt --product=$(PRODUCT) $< >en.tr +# 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 *~ - - -update_n_merge: $(PGOAL).pot merge - -merge: - for n in *.po; do \ - echo "Merging $$n"; \ - msgmerge -C $$n $$n $(PGOAL).pot > "$$n"t ; \ - mv -f "$$n"t $$n ; \ - done + rm -f .ready text.inc *.tr *~ talk/*~ |