From 652d40895cc6b25c95f8cb84876e58f4b1871a1f Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 25 Nov 2005 10:54:52 +0000 Subject: Remove old C placeholder --- po/Makefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'po/Makefile') diff --git a/po/Makefile b/po/Makefile index bc184108..a34169a7 100644 --- a/po/Makefile +++ b/po/Makefile @@ -10,8 +10,6 @@ PL_FILES = ../rpm-find-leaves ../urpm.pm ../urpme ../urpmf \ ../urpmi.removemedia ../urpmi.update ../urpmq \ ../urpm/parallel_ka_run.pm ../urpm/parallel_ssh.pm \ ../urpm/msg.pm ../urpm/args.pm ../rurpmi -# C-like files to search translatable strings in -CFILES = ./placeholder.h POFILES = $(shell ls *.po) MOFILES = $(POFILES:%.po=%.mo) @@ -24,9 +22,6 @@ all: $(GOALS) %.mo: %.po msgfmt -o $@ $< -placeholder.h: - ./create_placeholder - merge: $(PGOAL).pot @for n in $(POFILES); do \ echo "Merging $$n"; \ @@ -34,17 +29,13 @@ merge: $(PGOAL).pot mv -f "$$n"t "$$n"; \ done -$(PGOAL).pot: $(CFILES) - xgettext -F -n --add-comments \ - --keyword=_ --keyword=__ --keyword=N_ --keyword=N \ - --keyword=gettext \ - --language=C -o placeholder.pot $(CFILES) +$(PGOAL).pot: xgettext -F -n --add-comments \ --keyword=N_ --keyword=N \ --language=Perl -o $(PGOAL)_tmp.pot $(PL_FILES) - [ ! -e $(PGOAL)_tmp.pot ] || msgcat --use-first placeholder.pot $(PGOAL)_tmp.pot > $@ + [ ! -e $(PGOAL)_tmp.pot ] || msgcat --use-first $(PGOAL)_tmp.pot > $@ perl -pi -es/perl-format/c-format/ $@ - rm -f placeholder.pot $(PGOAL)_tmp.pot + rm -f $(PGOAL)_tmp.pot install: all for l in $(LANGS); do \ @@ -53,4 +44,4 @@ install: all done clean: - @rm -rf *~ *.mo $(GOALS) placeholder.pot $(PGOAL)_tmp.pot + @rm -rf *~ *.mo $(GOALS) $(PGOAL)_tmp.pot -- cgit v1.2.1