python/hypothesis: update to 6.122.3
[oi-userland.git] / components / desktop / sound-juicer / files / po-sun / Makefile
blob2b4490d0001880de11fb5a0eb7e9576f138adb6e
2 all:
3 @MSGCAT=$${MSGCAT:-msgcat}; \
4 MSGCAT_VERSION=`$$MSGCAT --version | head -1 | awk '{print $$NF}'`; \
5 MSGCAT_VERSION=`echo $$MSGCAT_VERSION | awk -F. '{ print $$1 * 1000 + $$2 * 100 + $$3; }'`; \
6 if [ $$MSGCAT_VERSION -lt 1500 ] ; then \
7 MSGCAT=/usr/bin/msgcat; \
8 MSGCAT_VERSION=`$$MSGCAT --version | head -1 | awk '{print $$NF}'`; \
9 MSGCAT_VERSION=`echo $$MSGCAT_VERSION | awk -F. '{ print $$1 * 1000 + $$2 * 100 + $$3; }'`; \
10 if [ $$MSGCAT_VERSION -lt 1500 ] ; then \
11 printf "msgcat version 0.15 is required for msgctxt\n"; \
12 printf "rf. http://live.gnome.org/GnomeGoals/MsgctxtMigration\n"; \
13 exit 1; \
14 fi; \
15 fi; \
17 for po_sun in $(POFILES); do \
18 po=$(PODIR)/$$po_sun; \
19 if test ! -f $$po; then \
20 continue; \
21 fi; \
23 echo "Merging $$po_sun ..."; \
25 header_community=$${po_sun}.header; \
26 I=0; \
27 exec < $$po; \
28 while read line; \
29 do \
30 is_comment=`echo $$line | grep '^#' | grep -v '^#,'`; \
31 if [ x"$$is_comment" = x ] ; then \
32 break; \
33 fi; \
34 I=`expr $$I + 1`; \
35 done; \
36 exec <&-; \
37 if [ $$I -ne 0 ] ; then \
38 sed -ne "1,$${I}p" $$po > $$header_community; \
39 fi; \
41 po_sun_no_obs=$$po_sun.no_obs; \
42 sed -e "/^#~/d" $$po_sun > $$po_sun_no_obs; \
44 if [ -f $$header_community ] ; then \
45 $$MSGCAT --use-first $$po_sun_no_obs $$po -o $$po.$$; \
46 cat $$header_community $$po.$$ > $$po; \
47 rm $$header_community $$po.$$; \
48 else \
49 $$MSGCAT --use-first $$po_sun_no_obs $$po -o $$po; \
50 fi; \
51 done
53 top_builddir = ..
54 PODIR = $(top_builddir)/po
55 POFILES = $(wildcard *.po)