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)
downloadefl-58409c521a3d538576e2fa24ee57638cacbd9333.tar.gz
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 = ..
XGETTEXT_FALLBACK := $(XGETTEXT)
# Override xgettext with our own custom wrapper
-XGETTEXT = $(srcdir)/xgettext_wrapper $(XGETTEXT_FALLBACK)
+XGETTEXT = $(srcdir)/xgettext_wrapper $(top_builddir) $(XGETTEXT_FALLBACK)
# These options get passed to xgettext.
XGETTEXT_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 @@
#!/bin/sh
-XGETTEXT=$1
+ELUAPATH=$1/src/bin/elua
+ELUA=${ELUAPATH}/elua
+LXGETTEXT=${ELUAPATH}/xgettext.lua
+export XGETTEXT=$2
+export EFL_RUN_IN_TREE=1
shift
-$XGETTEXT "$@"
+shift
+$ELUA $LXGETTEXT "$@"
exit $?