build: also prepare i18n directories

This commit is contained in:
Jo-Philipp Wich 2009-05-19 02:50:52 +00:00
parent de7842fdd3
commit 4274b69a12
2 changed files with 3 additions and 2 deletions

View file

@ -7,10 +7,10 @@ LUA_LIBRARYDIR = /usr/lib/lua
LUCI_MODULEDIR = $(LUA_MODULEDIR)/luci LUCI_MODULEDIR = $(LUA_MODULEDIR)/luci
LUCI_LIBRARYDIR = $(LUA_LIBRARYDIR)/luci LUCI_LIBRARYDIR = $(LUA_LIBRARYDIR)/luci
LUCI_I18NDIR = $(LUA_MODULEDIR)/luci/i18n
UVL_SCHEMEDIR = host/lib/uci/schema UVL_SCHEMEDIR = host/lib/uci/schema
HTDOCS = /www HTDOCS = /www
LUA=$(shell which lua) LUA=$(shell which lua)
XSLTPROC=$(shell which xsltproc)

View file

@ -25,8 +25,9 @@ luasource:
cp -pR htdocs/* dist$(HTDOCS) 2>/dev/null || true cp -pR htdocs/* dist$(HTDOCS) 2>/dev/null || true
for i in $$(find dist -name .svn -or -name .gitignore); do rm -rf $$i || true; done for i in $$(find dist -name .svn -or -name .gitignore); do rm -rf $$i || true; done
ifneq ($(PO),) ifneq ($(PO),)
mkdir -p dist$(LUCI_I18NDIR)
for file in $(PO); do \ for file in $(PO); do \
cp $(HOST)/lua-po/$$file.$(if $(PO_LANG),$(PO_LANG),*).lua dist$(LUCI_MODULEDIR)/i18n/; \ cp $(HOST)/lua-po/$$file.$(if $(PO_LANG),$(PO_LANG),*).lua dist$(LUCI_I18NDIR)/ 2>/dev/null || true; \
done done
endif endif