[vlc-devel] commit: Use a symbolic link instead of a shell script for static vlc ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 28 15:16:16 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 28 16:14:44 2009 +0200| [64a460aad5c8458343d4a98d4c7c9f22a883dbb9] | committer: Rémi Denis-Courmont 

Use a symbolic link instead of a shell script for static vlc

This allows invoking debuggers directly from the command line again!

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64a460aad5c8458343d4a98d4c7c9f22a883dbb9
---

 Makefile.am |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c2f09b5..378b34a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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




More information about the vlc-devel mailing list