[vlc-devel] commit: contrib: fix win32 packaging (Pierre Ynard )

git version control git at videolan.org
Fri Nov 13 08:52:28 CET 2009


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Nov 13 08:50:26 2009 +0100| [73c24f3a2d84c8ca9f18f4db9e86823099edd174] | committer: Pierre Ynard 

contrib: fix win32 packaging

Clean up hack and avoid failing if bin/ doesn't exist

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

 extras/contrib/Makefile |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/extras/contrib/Makefile b/extras/contrib/Makefile
index 84a5682..e6f27f6 100644
--- a/extras/contrib/Makefile
+++ b/extras/contrib/Makefile
@@ -121,12 +121,8 @@ package-win32:
 	done;
 # Change Prefix.
 	./change_prefix.sh tmp $(PREFIX) $(DISTDIR)
-# Hack for qt4
-	(cd tmp/$(DISTDIR)/bin; mv uic.exe uic.ex; mv rcc.exe rcc.ex; mv moc.exe moc.ex)
-#	Remove unused and potentially harmful files	
-	(cd tmp/$(DISTDIR)/bin; rm -rfv *.exe; chmod a+x *)
-# Hack for qt4
-	(cd tmp/$(DISTDIR)/bin; mv uic.ex uic.exe; mv rcc.ex rcc.exe; mv moc.ex moc.exe)
+# Remove unused and potentially harmful files (but skip qt4 executables)
+	(cd tmp/$(DISTDIR)/bin && rm -fv `find . -name 'uic.exe' -o -name 'rcc.exe' -o -name 'moc.exe' -o -name '*.exe' -printf '%p '` && chmod a+x * || true)
 # Tar it.
 	(cd tmp; tar cf - $(DISTDIR)) | bzip2 -c > contrib-`date +%Y%m%d`-win32-bin-gcc-`$(CC) --version|head -n 1|cut -f 3 -d ' '`-runtime-`/bin/echo -e "#include <_mingw.h>\n__MINGW32_VERSION"|$(CC) -E -|grep -v ^#|grep -v ' '`-only.tar.bz2
 	rm -rf tmp




More information about the vlc-devel mailing list