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

Remi Denis-Courmont rdenis at simphalempin.com
Mon Apr 7 14:09:18 CEST 2008


Nak. Writing to srcdir is NOT allowed. Distcheck checks this by the way.

Remi Denis

-- message original --
Sujet:	[vlc-devel] [PATCH] Symlink srcddir/share/lua/ into builddir/share/lua
De:	Jean-Philippe Andre <jpeg at via.ecp.fr>
Date:		06.04.2008 15:08

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

_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list