Blame po/Rules-quot

Packit 0af36a
# Special Makefile rules for English message catalogs with quotation marks.
Packit 0af36a
Packit 0af36a
DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
Packit 0af36a
Packit 0af36a
.SUFFIXES: .insert-header .po-update-en
Packit 0af36a
Packit 0af36a
en@quot.po-create:
Packit 0af36a
	$(MAKE) en@quot.po-update
Packit 0af36a
en@boldquot.po-create:
Packit 0af36a
	$(MAKE) en@boldquot.po-update
Packit 0af36a
Packit 0af36a
en@quot.po-update: en@quot.po-update-en
Packit 0af36a
en@boldquot.po-update: en@boldquot.po-update-en
Packit 0af36a
Packit 0af36a
.insert-header.po-update-en:
Packit 0af36a
	@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
Packit 0af36a
	if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
Packit 0af36a
	tmpdir=`pwd`; \
Packit 0af36a
	echo "$$lang:"; \
Packit 0af36a
	ll=`echo $$lang | sed -e 's/@.*//'`; \
Packit 0af36a
	LC_ALL=C; export LC_ALL; \
Packit 0af36a
	cd $(srcdir); \
Packit 0af36a
	if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
Packit 0af36a
	  if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
Packit 0af36a
	    rm -f $$tmpdir/$$lang.new.po; \
Packit 0af36a
	  else \
Packit 0af36a
	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
Packit 0af36a
	      :; \
Packit 0af36a
	    else \
Packit 0af36a
	      echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
Packit 0af36a
	      exit 1; \
Packit 0af36a
	    fi; \
Packit 0af36a
	  fi; \
Packit 0af36a
	else \
Packit 0af36a
	  echo "creation of $$lang.po failed!" 1>&2; \
Packit 0af36a
	  rm -f $$tmpdir/$$lang.new.po; \
Packit 0af36a
	fi
Packit 0af36a
Packit 0af36a
en@quot.insert-header: insert-header.sin
Packit 0af36a
	sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
Packit 0af36a
Packit 0af36a
en@boldquot.insert-header: insert-header.sin
Packit 0af36a
	sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
Packit 0af36a
Packit 0af36a
mostlyclean: mostlyclean-quot
Packit 0af36a
mostlyclean-quot:
Packit 0af36a
	rm -f *.insert-header