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 c2f09b5..378b34a 100644 (file)
@@ -397,12 +397,8 @@ if BUILD_VLC
 noinst_SCRIPTS += vlc$(EXEEXT)
 endif
 
 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
 
 if HAVE_DARWIN
 if BUILD_VLC