Commit 9ab96188 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Ship everything that is needed for lua script on Win32

Patch by ale5000, on IRC. Close #3336
parent 5abfcea3
...@@ -789,8 +789,8 @@ if USE_PEFLAGS ...@@ -789,8 +789,8 @@ if USE_PEFLAGS
done done
endif endif
# Copy the lua scripts (HTTP)
if BUILD_LUA if BUILD_LUA
# Copy the lua scripts (HTTP)
mkdir -p "$(win32_lua_destdir)/http/images" mkdir -p "$(win32_lua_destdir)/http/images"
mkdir -p "$(win32_lua_destdir)/http/requests" mkdir -p "$(win32_lua_destdir)/http/requests"
mkdir -p "$(win32_lua_destdir)/http/js" mkdir -p "$(win32_lua_destdir)/http/js"
...@@ -815,9 +815,7 @@ if BUILD_LUA ...@@ -815,9 +815,7 @@ if BUILD_LUA
unix2dos $(win32_lua_destdir)/http/requests/*.xml unix2dos $(win32_lua_destdir)/http/requests/*.xml
cp $(srcdir)/share/lua/http/requests/readme $(win32_lua_destdir)/http/requests/readme.txt cp $(srcdir)/share/lua/http/requests/readme $(win32_lua_destdir)/http/requests/readme.txt
unix2dos $(win32_lua_destdir)/http/requests/readme.txt unix2dos $(win32_lua_destdir)/http/requests/readme.txt
endif
if BUILD_LUA
#Lua Scripts #Lua Scripts
$(INSTALL) -d $(win32_lua_destdir) $(INSTALL) -d $(win32_lua_destdir)
for i in $(srcdir)/share/lua/*.* ; do \ for i in $(srcdir)/share/lua/*.* ; do \
...@@ -827,30 +825,47 @@ if BUILD_LUA ...@@ -827,30 +825,47 @@ if BUILD_LUA
for i in $(srcdir)/share/lua/modules/*.* ; do \ for i in $(srcdir)/share/lua/modules/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/modules/`basename $${i}` ; \ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/modules/`basename $${i}` ; \
done done
$(INSTALL) -d $(win32_lua_destdir)/playlist $(INSTALL) -d $(win32_lua_destdir)/extensions
for i in $(srcdir)/share/lua/playlist/*.* ; do \ for i in $(srcdir)/share/lua/extensions/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; \ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/extensions/`basename $${i}` ; \
done done
$(INSTALL) -d $(win32_lua_destdir)/sd $(INSTALL) -d $(win32_lua_destdir)/intf
for i in $(srcdir)/share/lua/sd/*.* ; do \ for i in $(srcdir)/share/lua/intf/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/sd/`basename $${i}` ; \ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/`basename $${i}` ; \
done
$(INSTALL) -d $(win32_lua_destdir)/intf/modules
for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/modules/`basename $${i}` ; \
done done
$(INSTALL) -d $(win32_lua_destdir)/meta/art $(INSTALL) -d $(win32_lua_destdir)/meta/art
for i in $(srcdir)/share/lua/meta/art/*.lua ; do \ for i in $(srcdir)/share/lua/meta/art/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/art/`basename $${i}` ; \ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/art/`basename $${i}` ; \
done done
$(INSTALL) -d $(win32_lua_destdir)/meta/fetcher
for i in $(srcdir)/share/lua/meta/fetcher/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/fetcher/`basename $${i}` ; \
done
$(INSTALL) -d $(win32_lua_destdir)/meta/reader $(INSTALL) -d $(win32_lua_destdir)/meta/reader
for i in $(srcdir)/share/lua/meta/reader/*.lua ; do \ for i in $(srcdir)/share/lua/meta/reader/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/reader/`basename $${i}` ; \ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/reader/`basename $${i}` ; \
done done
$(INSTALL) -d $(win32_lua_destdir)/intf $(INSTALL) -d $(win32_lua_destdir)/playlist
for i in $(srcdir)/share/lua/intf/*.* ; do \ for i in $(srcdir)/share/lua/playlist/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/`basename $${i}` ; \ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; \
done done
$(INSTALL) -d $(win32_lua_destdir)/intf/modules $(INSTALL) -d $(win32_lua_destdir)/sd
for i in $(srcdir)/share/lua/intf/modules/*.* ; do \ for i in $(srcdir)/share/lua/sd/*.* ; do \
$(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/modules/`basename $${i}` ; \ $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/sd/`basename $${i}` ; \
done done
unix2dos $(win32_lua_destdir)/README.txt
unix2dos $(win32_lua_destdir)/extensions/README.txt
unix2dos $(win32_lua_destdir)/intf/README.txt
unix2dos $(win32_lua_destdir)/meta/art/README.txt
unix2dos $(win32_lua_destdir)/meta/fetcher/README.txt
unix2dos $(win32_lua_destdir)/meta/reader/README.txt
unix2dos $(win32_lua_destdir)/playlist/README.txt
unix2dos $(win32_lua_destdir)/sd/README.txt
endif endif
# Copy the http files # Copy the http files
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment