File: rgettext.mk.in

package info (click to toggle)
kazehakase 0.5.8-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,184 kB
  • ctags: 7,837
  • sloc: ansic: 64,119; sh: 19,622; cpp: 12,601; ruby: 1,590; makefile: 1,437; xml: 464
file content (19 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	if test "$(RGETTEXT)" != ""; then					\
	  original_pot=$(GETTEXT_PACKAGE).orig.pot;				\
	  rb_pot=$(GETTEXT_PACKAGE).rb.pot;					\
	  rb_no_header_pot=$(GETTEXT_PACKAGE).rb.no-header.pot;			\
										\
	  $(RGETTEXT) -o $$rb_pot $(RGETTEXT_TARGETS);				\
	  $(RUBY) $(srcdir)/extract-po-header.rb $$rb_pot > $$rb_no_header_pot;	\
	  mv $(GETTEXT_PACKAGE).pot $$original_pot;				\
	  cat $$original_pot $$rb_no_header_pot > $(GETTEXT_PACKAGE).pot;	\
	  rm -f $$original_pot $$rb_pot $$rb_no_header_pot;			\
										\
	  dummy_c=dummy.c;							\
	  echo "/* for rejecting duplicated entries */" > $$dummy_c;		\
	  $(XGETTEXT) --join-existing -o $(GETTEXT_PACKAGE).pot $$dummy_c;	\
	  rm -f $$dummy_c;							\
	fi

RGETTEXT = @RGETTEXT@
RGETTEXT_TARGETS = @RGETTEXT_TARGETS@