Commit d8b6a43a authored by Antoine Cellerier's avatar Antoine Cellerier

Fix lua http interface loading.

parent e8f94533
......@@ -440,39 +440,39 @@ VLC-release.app: vlc
for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules/`basename $${i}` ; \
done ; \
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/dialogs
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/js
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/old
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/old/admin
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/old/vlm
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/images
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/requests
$(INSTALL) -m 644 $(srcdir)/share/http-lua/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/.hosts
for i in $(srcdir)/share/http-lua/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/`basename $${i}` ; \
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/old
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/old/admin
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/old/vlm
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests
$(INSTALL) -m 644 $(srcdir)/share/lua/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/.hosts
for i in $(srcdir)/share/lua/http/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/`basename $${i}` ; \
done
for i in $(srcdir)/share/http-lua/dialogs/* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/dialogs/`basename $${i}` ; \
for i in $(srcdir)/share/lua/http/dialogs/* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs/`basename $${i}` ; \
done
for i in $(srcdir)/share/http-lua/js/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/js/`basename $${i}` ; \
for i in $(srcdir)/share/lua/http/js/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js/`basename $${i}` ; \
done
for i in $(srcdir)/share/http-lua/old/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/old/`basename $${i}` ; \
for i in $(srcdir)/share/lua/http/old/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/old/`basename $${i}` ; \
done
for i in $(srcdir)/share/http-lua/old/admin/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/old/admin/`basename $${i}` ; \
for i in $(srcdir)/share/lua/http/old/admin/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/old/admin/`basename $${i}` ; \
done
for i in $(srcdir)/share/http-lua/old/vlm/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/old/vlm/`basename $${i}` ; \
for i in $(srcdir)/share/lua/http/old/vlm/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/old/vlm/`basename $${i}` ; \
done
for i in $(srcdir)/share/http-lua/images/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/images/`basename $${i}` ; \
for i in $(srcdir)/share/lua/http/images/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images/`basename $${i}` ; \
done
for i in $(srcdir)/share/http-lua/requests/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/requests/`basename $${i}` ; \
for i in $(srcdir)/share/lua/http/requests/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/`basename $${i}` ; \
done
$(INSTALL) -m 644 $(srcdir)/share/http-lua/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/http-lua/requests/readme.txt
$(INSTALL) -m 644 $(srcdir)/share/lua/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/readme.txt
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/dialogs
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/js
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old
......@@ -655,42 +655,42 @@ package-win-common:
|| true ; \
done
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/images"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/requests"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/js"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/dialogs"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/old"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/old/vlm"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/old/admin"
cp $(srcdir)/share/http-lua/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/*.html ;
cp $(srcdir)/share/http-lua/.hosts $(top_builddir)/vlc-$(VERSION)/http-lua/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/.hosts ;
cp $(srcdir)/share/http-lua/*.css $(top_builddir)/vlc-$(VERSION)/http-lua/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/*.css ;
cp $(srcdir)/share/http-lua/js/*.js $(top_builddir)/vlc-$(VERSION)/http-lua/js/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/js/*.js ;
cp $(srcdir)/share/http-lua/dialogs/* $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/* ;
cp $(srcdir)/share/http-lua/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/.hosts ;
cp $(srcdir)/share/http-lua/*.ico $(top_builddir)/vlc-$(VERSION)/http-lua/ ;
cp $(srcdir)/share/http-lua/images/*.png $(top_builddir)/vlc-$(VERSION)/http-lua/images/
cp $(srcdir)/share/http-lua/requests/*.xml $(top_builddir)/vlc-$(VERSION)/http-lua/requests/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/requests/*.xml ;
cp $(srcdir)/share/http-lua/requests/readme $(top_builddir)/vlc-$(VERSION)/http-lua/requests/readme.txt ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/requests/readme.txt ;
cp $(srcdir)/share/http-lua/old/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/old/*.html ;
cp $(srcdir)/share/http-lua/old/*.css $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ;
cp $(srcdir)/share/http-lua/old/.hosts $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ;
cp $(srcdir)/share/http-lua/old/*.png $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ;
cp $(srcdir)/share/http-lua/old/vlm/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/old/vlm/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/old/vlm/*.html ;
cp $(srcdir)/share/http-lua/old/admin/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/old/admin/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/old/admin/*.html ;
cp $(srcdir)/share/http-lua/old/admin/.access $(top_builddir)/vlc-$(VERSION)/http-lua/old/admin/ ;
mkdir -p "$(top_builddir)/vlc-$(VERSION)/lua/http/images"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/lua/http/requests"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/lua/http/js"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/lua/http/dialogs"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/lua/http/old"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/lua/http/old/vlm"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/lua/http/old/admin"
cp $(srcdir)/share/lua/http/*.html $(top_builddir)/vlc-$(VERSION)/lua/http/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/*.html ;
cp $(srcdir)/share/lua/http/.hosts $(top_builddir)/vlc-$(VERSION)/lua/http/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/.hosts ;
cp $(srcdir)/share/lua/http/*.css $(top_builddir)/vlc-$(VERSION)/lua/http/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/*.css ;
cp $(srcdir)/share/lua/http/js/*.js $(top_builddir)/vlc-$(VERSION)/lua/http/js/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/js/*.js ;
cp $(srcdir)/share/lua/http/dialogs/* $(top_builddir)/vlc-$(VERSION)/lua/http/dialogs/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/dialogs/* ;
cp $(srcdir)/share/lua/http/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/lua/http/dialogs/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/dialogs/.hosts ;
cp $(srcdir)/share/lua/http/*.ico $(top_builddir)/vlc-$(VERSION)/lua/http/ ;
cp $(srcdir)/share/lua/http/images/*.png $(top_builddir)/vlc-$(VERSION)/lua/http/images/
cp $(srcdir)/share/lua/http/requests/*.xml $(top_builddir)/vlc-$(VERSION)/lua/http/requests/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/requests/*.xml ;
cp $(srcdir)/share/lua/http/requests/readme $(top_builddir)/vlc-$(VERSION)/lua/http/requests/readme.txt ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/requests/readme.txt ;
cp $(srcdir)/share/lua/http/old/*.html $(top_builddir)/vlc-$(VERSION)/lua/http/old/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/old/*.html ;
cp $(srcdir)/share/lua/http/old/*.css $(top_builddir)/vlc-$(VERSION)/lua/http/old/ ;
cp $(srcdir)/share/lua/http/old/.hosts $(top_builddir)/vlc-$(VERSION)/lua/http/old/ ;
cp $(srcdir)/share/lua/http/old/*.png $(top_builddir)/vlc-$(VERSION)/lua/http/old/ ;
cp $(srcdir)/share/lua/http/old/vlm/*.html $(top_builddir)/vlc-$(VERSION)/lua/http/old/vlm/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/old/vlm/*.html ;
cp $(srcdir)/share/lua/http/old/admin/*.html $(top_builddir)/vlc-$(VERSION)/lua/http/old/admin/ ;
unix2dos $(top_builddir)/vlc-$(VERSION)/lua/http/old/admin/*.html ;
cp $(srcdir)/share/lua/http/old/admin/.access $(top_builddir)/vlc-$(VERSION)/lua/http/old/admin/ ;
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/images"
mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/requests"
......
......@@ -274,86 +274,86 @@ DIST_lua= \
lua/intf/dummy.lua
DIST_http_lua = \
http-lua/.hosts \
http-lua/custom.lua \
http-lua/dialogs/.hosts \
http-lua/dialogs/browse \
http-lua/dialogs/footer \
http-lua/dialogs/input \
http-lua/dialogs/main \
http-lua/dialogs/mosaic \
http-lua/dialogs/playlist \
http-lua/dialogs/sout \
http-lua/dialogs/vlm \
http-lua/favicon.ico \
http-lua/images/delete.png \
http-lua/images/delete_small.png \
http-lua/images/eject.png \
http-lua/images/empty.png \
http-lua/images/fullscreen.png \
http-lua/images/help.png \
http-lua/images/info.png \
http-lua/images/loop.png \
http-lua/images/minus.png \
http-lua/images/next.png \
http-lua/images/pause.png \
http-lua/images/play.png \
http-lua/images/playlist.png \
http-lua/images/playlist_small.png \
http-lua/images/plus.png \
http-lua/images/prev.png \
http-lua/images/refresh.png \
http-lua/images/repeat.png \
http-lua/images/reset.png \
http-lua/images/sd.png \
http-lua/images/shuffle.png \
http-lua/images/slider_bar.png \
http-lua/images/slider_left.png \
http-lua/images/slider_point.png \
http-lua/images/slider_right.png \
http-lua/images/snapshot.png \
http-lua/images/slow.png \
http-lua/images/sort.png \
http-lua/images/sout.png \
http-lua/images/speaker.png \
http-lua/images/speaker_mute.png \
http-lua/images/stop.png \
http-lua/images/vlc16x16.png \
http-lua/images/volume_down.png \
http-lua/images/volume_up.png \
http-lua/images/white.png \
http-lua/images/white_cross_small.png \
http-lua/index.html \
http-lua/js/functions.js \
http-lua/js/mosaic.js \
http-lua/js/vlm.js \
http-lua/mosaic.html \
http-lua/old/.hosts \
http-lua/old/admin/.access \
http-lua/old/admin/browse.html \
http-lua/old/admin/dboxfiles.html \
http-lua/old/admin/index.html \
http-lua/old/cone_minus.png \
http-lua/old/cone_plus.png \
http-lua/old/index.html \
http-lua/old/info.html \
http-lua/old/style.css \
http-lua/old/vlm/edit.html \
http-lua/old/vlm/index.html \
http-lua/old/vlm/new.html \
http-lua/old/vlm/show.html \
http-lua/old/webcam.html \
http-lua/requests/browse.xml \
http-lua/requests/playlist.xml \
http-lua/requests/status.xml \
http-lua/requests/vlm.xml \
http-lua/requests/vlm_cmd.xml \
http-lua/requests/readme \
http-lua/style.css \
http-lua/iehacks.css \
http-lua/vlm.html \
http-lua/vlm_export.html \
http-lua/flash.html
lua/http/.hosts \
lua/http/custom.lua \
lua/http/dialogs/.hosts \
lua/http/dialogs/browse \
lua/http/dialogs/footer \
lua/http/dialogs/input \
lua/http/dialogs/main \
lua/http/dialogs/mosaic \
lua/http/dialogs/playlist \
lua/http/dialogs/sout \
lua/http/dialogs/vlm \
lua/http/favicon.ico \
lua/http/images/delete.png \
lua/http/images/delete_small.png \
lua/http/images/eject.png \
lua/http/images/empty.png \
lua/http/images/fullscreen.png \
lua/http/images/help.png \
lua/http/images/info.png \
lua/http/images/loop.png \
lua/http/images/minus.png \
lua/http/images/next.png \
lua/http/images/pause.png \
lua/http/images/play.png \
lua/http/images/playlist.png \
lua/http/images/playlist_small.png \
lua/http/images/plus.png \
lua/http/images/prev.png \
lua/http/images/refresh.png \
lua/http/images/repeat.png \
lua/http/images/reset.png \
lua/http/images/sd.png \
lua/http/images/shuffle.png \
lua/http/images/slider_bar.png \
lua/http/images/slider_left.png \
lua/http/images/slider_point.png \
lua/http/images/slider_right.png \
lua/http/images/snapshot.png \
lua/http/images/slow.png \
lua/http/images/sort.png \
lua/http/images/sout.png \
lua/http/images/speaker.png \
lua/http/images/speaker_mute.png \
lua/http/images/stop.png \
lua/http/images/vlc16x16.png \
lua/http/images/volume_down.png \
lua/http/images/volume_up.png \
lua/http/images/white.png \
lua/http/images/white_cross_small.png \
lua/http/index.html \
lua/http/js/functions.js \
lua/http/js/mosaic.js \
lua/http/js/vlm.js \
lua/http/mosaic.html \
lua/http/old/.hosts \
lua/http/old/admin/.access \
lua/http/old/admin/browse.html \
lua/http/old/admin/dboxfiles.html \
lua/http/old/admin/index.html \
lua/http/old/cone_minus.png \
lua/http/old/cone_plus.png \
lua/http/old/index.html \
lua/http/old/info.html \
lua/http/old/style.css \
lua/http/old/vlm/edit.html \
lua/http/old/vlm/index.html \
lua/http/old/vlm/new.html \
lua/http/old/vlm/show.html \
lua/http/old/webcam.html \
lua/http/requests/browse.xml \
lua/http/requests/playlist.xml \
lua/http/requests/status.xml \
lua/http/requests/vlm.xml \
lua/http/requests/vlm_cmd.xml \
lua/http/requests/readme \
lua/http/style.css \
lua/http/iehacks.css \
lua/http/vlm.html \
lua/http/vlm_export.html \
lua/http/flash.html
DIST_mozilla = \
mozilla/fullscreen.xpm \
......
......@@ -190,7 +190,7 @@ local function find_datadir(name)
end
error("Unable to find the `"..name.."' directory.")
end
http_dir = config.dir or find_datadir("http-lua")
http_dir = config.dir or find_datadir("http")
do
local oldpath = package.path
......
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