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