summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-25 10:54:52 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-25 10:54:52 +0000
commit652d40895cc6b25c95f8cb84876e58f4b1871a1f (patch)
treefa6f284541cc32d02ed223f1652b1355d1a58ac8 /po/Makefile
parentfca3adbb07c466f14c943d4057be7983b8b1da31 (diff)
downloadurpmi-652d40895cc6b25c95f8cb84876e58f4b1871a1f.tar
urpmi-652d40895cc6b25c95f8cb84876e58f4b1871a1f.tar.gz
urpmi-652d40895cc6b25c95f8cb84876e58f4b1871a1f.tar.bz2
urpmi-652d40895cc6b25c95f8cb84876e58f4b1871a1f.tar.xz
urpmi-652d40895cc6b25c95f8cb84876e58f4b1871a1f.zip
Remove old C placeholder
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile17
1 files changed, 4 insertions, 13 deletions
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