5 kx # This file, Rules-quot, can be copied and used freely without restrictions.
5 kx # Special Makefile rules for English message catalogs with quotation marks.
5 kx
5 kx DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
5 kx
5 kx .SUFFIXES: .insert-header .po-update-en
5 kx
5 kx en@quot.po-create:
5 kx $(MAKE) en@quot.po-update
5 kx en@boldquot.po-create:
5 kx $(MAKE) en@boldquot.po-update
5 kx
5 kx en@quot.po-update: en@quot.po-update-en
5 kx en@boldquot.po-update: en@boldquot.po-update-en
5 kx
5 kx .insert-header.po-update-en:
5 kx @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
5 kx if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
5 kx tmpdir=`pwd`; \
5 kx echo "$$lang:"; \
5 kx ll=`echo $$lang | sed -e 's/@.*//'`; \
5 kx LC_ALL=C; export LC_ALL; \
5 kx cd $(srcdir); \
5 kx if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \
5 kx | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \
5 kx { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
5 kx '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \
5 kx $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \
5 kx ;; \
5 kx *) \
5 kx $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \
5 kx ;; \
5 kx esac } 2>/dev/null > $$tmpdir/$$lang.new.po \
5 kx ; then \
5 kx if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
5 kx rm -f $$tmpdir/$$lang.new.po; \
5 kx else \
5 kx if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
5 kx :; \
5 kx else \
5 kx echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
5 kx exit 1; \
5 kx fi; \
5 kx fi; \
5 kx else \
5 kx echo "creation of $$lang.po failed!" 1>&2; \
5 kx rm -f $$tmpdir/$$lang.new.po; \
5 kx fi
5 kx
5 kx en@quot.insert-header: insert-header.sin
5 kx sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
5 kx
5 kx en@boldquot.insert-header: insert-header.sin
5 kx sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
5 kx
5 kx mostlyclean: mostlyclean-quot
5 kx mostlyclean-quot:
5 kx rm -f *.insert-header