Blame po/Rules-quot

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