]> git.proxmox.com Git - grub2.git/blame - po/Rules-piglatin
usb: Avoid possible out-of-bound accesses caused by malicious devices
[grub2.git] / po / Rules-piglatin
CommitLineData
8f9cace1
VS
1# Special Makefile rules for Pig Latin message catalogs with quotation marks.
2
3DISTFILES.common.extra3 = piglatin.sed en@piglatin.header insert-header.sin Rules-piglatin
4
e70a2c50 5.SUFFIXES: .insert-header .po-update-en-piglatin
8f9cace1
VS
6
7en@piglatin.po-create:
8 $(MAKE) en@piglatin.po-update
9
10en@piglatin.po-update: en@piglatin.po-update-en
11
e70a2c50
VS
12.insert-header.po-update-en-piglatin:
13 @lang=`echo $@ | sed -e 's/\.po-update-en-piglatin$$//'`; \
8f9cace1
VS
14 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
15 tmpdir=`pwd`; \
16 echo "$$lang:"; \
17 ll=`echo $$lang | sed -e 's/@.*//'`; \
18 LC_ALL=C; export LC_ALL; \
19 cd $(srcdir); \
20 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 \
21 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
22 rm -f $$tmpdir/$$lang.new.po; \
23 else \
24 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
25 :; \
26 else \
27 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
28 exit 1; \
29 fi; \
30 fi; \
31 else \
32 echo "creation of $$lang.po failed!" 1>&2; \
33 rm -f $$tmpdir/$$lang.new.po; \
34 fi
35
36en@piglatin.insert-header: insert-header.sin
37 sed -e '/^#/d' -e 's/HEADER/en@piglatin.header/g' $(srcdir)/insert-header.sin > en@piglatin.insert-header
38
39mostlyclean: mostlyclean-piglatin
40mostlyclean-piglatin:
41 rm -f *.insert-header