summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorDaniel Kolesa <quaker66@gmail.com>2014-05-06 12:04:52 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-10 15:48:50 +0100
commit58409c521a3d538576e2fa24ee57638cacbd9333 (patch)
tree41eb5022a97ba513e22fd42d58099eb6f678be58 /po
parent4dfec82877664786e487c8cee0ca982290968a90 (diff)
elua: trigger xgettext execution from xgettext.lua, which is executed by xgettext_wrapper
Diffstat (limited to 'po')
-rw-r--r--po/Makevars2
-rwxr-xr-xpo/xgettext_wrapper9
2 files changed, 8 insertions, 3 deletions
diff --git a/po/Makevars b/po/Makevars
index b6ee6afb97..0b56f80f30 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -11,7 +11,7 @@ top_builddir = ..
11XGETTEXT_FALLBACK := $(XGETTEXT) 11XGETTEXT_FALLBACK := $(XGETTEXT)
12 12
13# Override xgettext with our own custom wrapper 13# Override xgettext with our own custom wrapper
14XGETTEXT = $(srcdir)/xgettext_wrapper $(XGETTEXT_FALLBACK) 14XGETTEXT = $(srcdir)/xgettext_wrapper $(top_builddir) $(XGETTEXT_FALLBACK)
15 15
16# These options get passed to xgettext. 16# These options get passed to xgettext.
17XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user 17XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
diff --git a/po/xgettext_wrapper b/po/xgettext_wrapper
index 9415f2f39b..d65c8d0959 100755
--- a/po/xgettext_wrapper
+++ b/po/xgettext_wrapper
@@ -1,5 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2XGETTEXT=$1 2ELUAPATH=$1/src/bin/elua
3ELUA=${ELUAPATH}/elua
4LXGETTEXT=${ELUAPATH}/xgettext.lua
5export XGETTEXT=$2
6export EFL_RUN_IN_TREE=1
3shift 7shift
4$XGETTEXT "$@" 8shift
9$ELUA $LXGETTEXT "$@"
5exit $? 10exit $?