[vlc-devel] [PATCH] Symlink srcddir/share/lua/ into builddir/share/lua

Jean-Philippe Andre jpeg at via.ecp.fr
Sun Apr 6 17:09:07 CEST 2008


This makes lua scripts work out of the box for developers who
have srcdir != builddir

NB: I am not sure if Makefile.am:326 is the right place to this diff...

Best regards,
Jean-Philippe
---
 Makefile.am |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index d70a599..6bfc5b0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -326,6 +326,9 @@ endif
 vlc$(EXEEXT): core
 	rm -f vlc$(EXEEXT)
 	ln -s src/vlc$(EXEEXT)
+	if [ "$(abs_top_srcdir)" != "$(abs_top_builddir)" ] ; then \
+	  ln -sfn "$(abs_top_srcdir)/share/lua" "$(abs_top_builddir)/share/lua"; \
+	fi;
 #	rm -f -- vlc vlc.tmp
 #	echo '#! /bin/sh' > vlc.tmp
 #	echo 'exec "$$(dirname "$$0")/src/vlc$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
-- 
1.5.4.5




More information about the vlc-devel mailing list