forked from enlightenment/efl
elua: if ugly, then at least portable (we already assume presence of bourne shell on windows, so a wrapper doesn't hurt)
This commit is contained in:
parent
30e5f11dc6
commit
cfae9b5eeb
|
@ -12,8 +12,8 @@ XGETTEXT_FALLBACK := $(XGETTEXT)
|
||||||
|
|
||||||
# Override xgettext with a LuaJIT aware variant (which calls
|
# Override xgettext with a LuaJIT aware variant (which calls
|
||||||
# into plain xgettext if it needs to, and handles Lua on its own)
|
# into plain xgettext if it needs to, and handles Lua on its own)
|
||||||
XGETTEXT = XGETTEXT=$(XGETTEXT_FALLBACK) EFL_RUN_IN_TREE=1 \
|
XGETTEXT = ELUA=@elua_bin@ ELUA_INTREE=$(top_builddir)/src/bin/elua/elua \
|
||||||
$(top_builddir)/src/bin/elua/elua :xgettext
|
XGETTEXT=$(XGETTEXT_FALLBACK) ./xgettext_wrapper.sh
|
||||||
|
|
||||||
# These options get passed to xgettext.
|
# These options get passed to xgettext.
|
||||||
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
|
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ELUA_BIN="$ELUA"
|
||||||
|
|
||||||
|
if [ ! "$ELUA_BIN" ]; then
|
||||||
|
ELUA_BIN="$ELUA_INTREE"
|
||||||
|
export EFL_RUN_IN_TREE=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
$ELUA_BIN :xgettext "$@"
|
||||||
|
|
||||||
|
exit $?
|
Loading…
Reference in New Issue