summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-05-28 16:27:40 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-10 15:48:52 +0100
commitcfae9b5eeb699a547a18b8ac45c1cfdf3bca5c20 (patch)
tree2b72a796f4a2028f290848b26fdd8abbdf91dd78 /po
parent30e5f11dc60b18843f9d36f0c3e60e4bd3126819 (diff)
elua: if ugly, then at least portable (we already assume presence of bourne shell on windows, so a wrapper doesn't hurt)
Diffstat (limited to 'po')
-rw-r--r--po/Makevars.in4
-rwxr-xr-xpo/xgettext_wrapper.sh12
2 files changed, 14 insertions, 2 deletions
diff --git a/po/Makevars.in b/po/Makevars.in
index f332a1c2d7..f3bfe98d2c 100644
--- a/po/Makevars.in
+++ b/po/Makevars.in
@@ -12,8 +12,8 @@ XGETTEXT_FALLBACK := $(XGETTEXT)
12 12
13# Override xgettext with a LuaJIT aware variant (which calls 13# Override xgettext with a LuaJIT aware variant (which calls
14# into plain xgettext if it needs to, and handles Lua on its own) 14# into plain xgettext if it needs to, and handles Lua on its own)
15XGETTEXT = XGETTEXT=$(XGETTEXT_FALLBACK) EFL_RUN_IN_TREE=1 \ 15XGETTEXT = ELUA=@elua_bin@ ELUA_INTREE=$(top_builddir)/src/bin/elua/elua \
16 $(top_builddir)/src/bin/elua/elua :xgettext 16 XGETTEXT=$(XGETTEXT_FALLBACK) ./xgettext_wrapper.sh
17 17
18# These options get passed to xgettext. 18# These options get passed to xgettext.
19XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user 19XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
diff --git a/po/xgettext_wrapper.sh b/po/xgettext_wrapper.sh
new file mode 100755
index 0000000000..5aee06f4a9
--- /dev/null
+++ b/po/xgettext_wrapper.sh
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3ELUA_BIN="$ELUA"
4
5if [ ! "$ELUA_BIN" ]; then
6 ELUA_BIN="$ELUA_INTREE"
7 export EFL_RUN_IN_TREE=1
8fi
9
10$ELUA_BIN :xgettext "$@"
11
12exit $? \ No newline at end of file