Home | History | Annotate | Line # | Download | only in po
      1      1.1  christos # Special Makefile rules for English message catalogs with quotation marks.
      2      1.1  christos 
      3      1.1  christos DISTFILES.common.extra1 = quot.sed boldquot.sed en (a] quot.header en (a] boldquot.header insert-header.sin Rules-quot
      4      1.1  christos 
      5      1.1  christos .SUFFIXES: .insert-header .po-update-en
      6      1.1  christos 
      7  1.1.1.2  christos en (a] quot.po-create:
      8  1.1.1.2  christos 	$(MAKE) en (a] quot.po-update
      9  1.1.1.2  christos en (a] boldquot.po-create:
     10  1.1.1.2  christos 	$(MAKE) en (a] boldquot.po-update
     11  1.1.1.2  christos 
     12      1.1  christos en (a] quot.po-update: en (a] quot.po-update-en
     13      1.1  christos en (a] boldquot.po-update: en (a] boldquot.po-update-en
     14      1.1  christos 
     15      1.1  christos .insert-header.po-update-en:
     16      1.1  christos 	@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
     17  1.1.1.4  christos 	if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
     18      1.1  christos 	tmpdir=`pwd`; \
     19      1.1  christos 	echo "$$lang:"; \
     20      1.1  christos 	ll=`echo $$lang | sed -e 's/@.*//'`; \
     21      1.1  christos 	LC_ALL=C; export LC_ALL; \
     22      1.1  christos 	cd $(srcdir); \
     23  1.1.1.4  christos 	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 \
     24      1.1  christos 	  if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
     25      1.1  christos 	    rm -f $$tmpdir/$$lang.new.po; \
     26      1.1  christos 	  else \
     27      1.1  christos 	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
     28      1.1  christos 	      :; \
     29      1.1  christos 	    else \
     30      1.1  christos 	      echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
     31      1.1  christos 	      exit 1; \
     32      1.1  christos 	    fi; \
     33      1.1  christos 	  fi; \
     34      1.1  christos 	else \
     35      1.1  christos 	  echo "creation of $$lang.po failed!" 1>&2; \
     36      1.1  christos 	  rm -f $$tmpdir/$$lang.new.po; \
     37      1.1  christos 	fi
     38      1.1  christos 
     39      1.1  christos en (a] quot.insert-header: insert-header.sin
     40      1.1  christos 	sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en (a] quot.insert-header
     41      1.1  christos 
     42      1.1  christos en (a] boldquot.insert-header: insert-header.sin
     43      1.1  christos 	sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en (a] boldquot.insert-header
     44      1.1  christos 
     45      1.1  christos mostlyclean: mostlyclean-quot
     46      1.1  christos mostlyclean-quot:
     47      1.1  christos 	rm -f *.insert-header
     48