Blame po/Rules-quot

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