]> git.sesse.net Git - vlc/commitdiff
Use a symbolic link instead of a shell script for static vlc
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Feb 2009 14:14:44 +0000 (16:14 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Feb 2009 14:14:44 +0000 (16:14 +0200)
This allows invoking debuggers directly from the command line again!

Makefile.am

index c2f09b5acef9619edfe5a3f57e5157606546a949..378b34affe9e17f18e6c67c49b2ebb97945f2209 100644 (file)
@@ -397,12 +397,8 @@ if BUILD_VLC
 noinst_SCRIPTS += vlc$(EXEEXT)
 endif
 
-vlc$(EXEEXT): Makefile.am
-       rm -f -- vlc vlc.tmp
-       echo '#! /bin/sh' > vlc.tmp
-       echo 'exec "$$(dirname "$$0")/bin/vlc-static$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
-       chmod +x vlc.tmp
-       mv -f -- vlc.tmp vlc
+vlc$(EXEEXT):
+       ln -sf bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
 
 if HAVE_DARWIN
 if BUILD_VLC