Commit 492c2c68 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc: set the plugin-path explicitly

So we don't need the current working directory hack to run VLC from the
build tree. As an added bonus, we can now run VLC from its build tree
even if the current working directory is not $(top_builddir).
parent ddcfa776
...@@ -383,14 +383,12 @@ if BUILD_VLC ...@@ -383,14 +383,12 @@ if BUILD_VLC
noinst_SCRIPTS += vlc$(EXEEXT) noinst_SCRIPTS += vlc$(EXEEXT)
endif endif
vlc$(EXEEXT): core vlc$(EXEEXT): Makefile.am
rm -f vlc$(EXEEXT) rm -f -- vlc vlc.tmp
ln -s src/vlc$(EXEEXT) echo '#! /bin/sh' > vlc.tmp
# rm -f -- vlc vlc.tmp echo 'exec "$$(dirname "$$0")/src/vlc$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
# echo '#! /bin/sh' > vlc.tmp chmod +x vlc.tmp
# echo 'exec "$$(dirname "$$0")/src/vlc$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp mv -f -- vlc.tmp vlc
# chmod +x vlc.tmp
# mv -f -- vlc.tmp vlc
if HAVE_DARWIN if HAVE_DARWIN
# Create the MacOS X app # Create the MacOS X app
......
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