diff options
author | Daniel Kolesa <quaker66@gmail.com> | 2014-05-06 13:44:56 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2014-06-10 15:48:50 +0100 |
commit | fcbf219de4559690f3ff97bba0782d511357ec21 (patch) | |
tree | aabf3623b1ba9ac0ae955c0e3a4a62fef3dcdcaf /po | |
parent | cbeaf5b58ad630f459f91d15de5ce8a3db6c6740 (diff) |
elua: remove xgettext_wrapper, instead expand the whole command into Makevars
Diffstat (limited to 'po')
-rw-r--r-- | po/Makevars | 6 | ||||
-rwxr-xr-x | po/xgettext_wrapper | 10 |
2 files changed, 4 insertions, 12 deletions
diff --git a/po/Makevars b/po/Makevars index 0b56f80f30..71266a8188 100644 --- a/po/Makevars +++ b/po/Makevars | |||
@@ -10,8 +10,10 @@ top_builddir = .. | |||
10 | # Save xgettext path | 10 | # Save xgettext path |
11 | XGETTEXT_FALLBACK := $(XGETTEXT) | 11 | XGETTEXT_FALLBACK := $(XGETTEXT) |
12 | 12 | ||
13 | # Override xgettext with our own custom wrapper | 13 | # Override xgettext with a LuaJIT aware variant (which calls |
14 | XGETTEXT = $(srcdir)/xgettext_wrapper $(top_builddir) $(XGETTEXT_FALLBACK) | 14 | # into plain xgettext if it needs to, and handles Lua on its own) |
15 | XGETTEXT = XGETTEXT=$(XGETTEXT_FALLBACK) EFL_RUN_IN_TREE=1 \ | ||
16 | $(top_builddir)/src/bin/elua/elua $(top_builddir)/src/bin/elua/xgettext.lua | ||
15 | 17 | ||
16 | # These options get passed to xgettext. | 18 | # These options get passed to xgettext. |
17 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user | 19 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user |
diff --git a/po/xgettext_wrapper b/po/xgettext_wrapper deleted file mode 100755 index d65c8d0959..0000000000 --- a/po/xgettext_wrapper +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | ELUAPATH=$1/src/bin/elua | ||
3 | ELUA=${ELUAPATH}/elua | ||
4 | LXGETTEXT=${ELUAPATH}/xgettext.lua | ||
5 | export XGETTEXT=$2 | ||
6 | export EFL_RUN_IN_TREE=1 | ||
7 | shift | ||
8 | shift | ||
9 | $ELUA $LXGETTEXT "$@" | ||
10 | exit $? | ||