changeset 2411:472068647793

Fix the copied makefile to work with jabber bot.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Tue, 17 Jul 2007 03:21:00 +0200
parents a3410c72b839
children 46fd1b987437
files MoinMoin/i18n/jabberbot/Makefile
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/jabberbot/Makefile	Tue Jul 17 01:55:53 2007 +0200
+++ b/MoinMoin/i18n/jabberbot/Makefile	Tue Jul 17 03:21:00 2007 +0200
@@ -1,25 +1,25 @@
 POFILES = $(wildcard *.po)
 UPDATEPOFILES = $(POFILES:.po=.po-update)
 NOPFILES = $(POFILES:.po=.nop)
-DOMAIN = MoinMoin
+DOMAIN = JabberBot
 
 .SUFFIXES: .po .po-update .nop
 
 -include POTFILES
 
 POTFILES.in POTFILES:
-	@python tools/mk_POTFILES.py
+	@python ../tools/mk_POTFILES.py ../../../jabberbot
 
 .nop.po-update:
 	@lang=`echo $@ | sed -e 's/\.MoinMoin\.po-update$$//'`; \
 	echo "$$lang:"; \
-	tools/wiki2po.py $${lang}; \
+	../tools/wiki2po.py $${lang}; \
 	echo "msgmerge $$lang.$(DOMAIN).po $(DOMAIN).pot -o $$lang.$(DOMAIN).new.po"; \
 	if msgmerge $$lang.$(DOMAIN).po $(DOMAIN).pot -o $$lang.$(DOMAIN).new.po; then \
 	  if cmp $$lang.$(DOMAIN).po $$lang.$(DOMAIN).new.po >/dev/null 2>&1; then \
 	    rm -f $$lang.$(DOMAIN).new.po; \
 	  else \
-	    tools/po2wiki.py $$lang <$$lang.$(DOMAIN).new.po; \
+	    ../tools/po2wiki.py $$lang <$$lang.$(DOMAIN).new.po; \
 	    rm -f $$lang.$(DOMAIN).new.po; \
 	  fi; \
 	else \
@@ -30,7 +30,7 @@
 # remove "--no-location" if you want to have file names and line numbers
 # that's bad for merging branches - this is why we don't use it
 $(DOMAIN).pot-update: $(POTFILES) POTFILES.in
-	xgettext --default-domain=$(DOMAIN) --directory=.. \
+	xgettext --default-domain=$(DOMAIN) --directory=../../../jabberbot \
 	  --files-from=POTFILES.in \
 	  --no-location \
 	  --add-comments=TRANSLATORS:
@@ -54,10 +54,10 @@
 
 $(POFILES):
 	@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.MoinMoin\.po$$//'`; \
-	tools/wiki2po.py $${lang}; \
+	../tools/wiki2po.py $${lang}; \
 	echo msgmerge $${lang}.$(DOMAIN).po $(DOMAIN).pot -o $${lang}.$(DOMAIN).new.po; \
 	msgmerge $${lang}.$(DOMAIN).po $(DOMAIN).pot -o $${lang}.$(DOMAIN).new.po; \
-	tools/po2wiki.py $${lang} <$$lang.$(DOMAIN).new.po; \
+	../tools/po2wiki.py $${lang} <$$lang.$(DOMAIN).new.po; \
 	rm -f $$lang.$(DOMAIN).new.po
 
 $(NOPFILES):
@@ -71,7 +71,7 @@
 	for i in $$files; do \
 	  lang=`echo $$i | sed -e 's,.*/,,' -e 's/\.MoinMoin\.po$$//'`; \
 	  echo -n "$$lang: "; \
-	  msgfmt -o /dev/null --statistics $$i; \
+	  ../msgfmt -o /dev/null --statistics $$i; \
 	done
 
 clean: