[vlc-devel] commit: VLC.app: set CFBundleVersion to git-describe. (Pierre d'Herbemont )

git version control git at videolan.org
Thu Aug 14 02:56:07 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Thu Aug 14 02:45:20 2008 +0200| [a017df43b37c4c694936710f847c472c17d271fc] | committer: Pierre d'Herbemont 

VLC.app: set CFBundleVersion to git-describe.

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

 Makefile.am                         |   22 +++++++++-------------
 extras/package/macosx/Info.plist.in |    4 ++--
 2 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1caf4ee..d7c58bf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -410,9 +410,10 @@ VLC-release.app: vlc
 	for i in vlc.xcodeproj Resources README.MacOSX.rtf ; do \
 	  cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
 	done
-	for i in  Resources Info.plist; do \
-	  cp -R $(top_builddir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
-	done
+	REVISION=`git-describe` && \
+	cat $(top_builddir)/extras/package/macosx/Info.plist | \
+	sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
+	cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
 	for i in AUTHORS COPYING THANKS; do \
 	  cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
 	done
@@ -571,9 +572,10 @@ VLC.app: vlc
 	for i in vlc.xcodeproj Resources README.MacOSX.rtf; do \
 	  cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
 	done
-	for i in  Resources Info.plist; do \
-	  cp -R $(top_builddir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
-	done
+	REVISION=`git-describe` && \
+	cat $(top_builddir)/extras/package/macosx/Info.plist | \
+	sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
+	cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
 	for i in AUTHORS COPYING THANKS; do \
 	  cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
 	done
@@ -634,17 +636,11 @@ VLC.app: vlc
 	    cd ../../../../ && \
 	    cp -R $(top_builddir)/tmp/extras/package/macosx/build/Default/VLC.bundle \
 	          $(top_builddir)/VLC.app
-	rm -Rf $(top_builddir)/tmp
 	$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
 	touch $(top_builddir)/VLC.app/Contents/MacOS/VLC
 	chmod +x $(top_builddir)/VLC.app/Contents/MacOS/VLC
 	$(INSTALL) $(top_builddir)/src/.libs/vlc $(top_builddir)/VLC.app/Contents/MacOS/VLC
-	$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
-	find modules/ -name '*_plugin$(LIBEXT)' | while read i; do \
-	  if test -n "$$i" ; \
-	   then ln -sfn "`pwd`/$$i" \
-				   "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
-	  fi ; done && \
+	ln -sf ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/modules
 	ln -sfn `pwd`/$(srcdir)/share $(top_builddir)/VLC.app/Contents/MacOS/
 	$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/locale
 	cat $(top_srcdir)/po/LINGUAS | while read i; do \
diff --git a/extras/package/macosx/Info.plist.in b/extras/package/macosx/Info.plist.in
index fd0218e..f39248b 100644
--- a/extras/package/macosx/Info.plist.in
+++ b/extras/package/macosx/Info.plist.in
@@ -737,6 +737,8 @@
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>
 	<string>@VERSION@</string>
+	<key>CFBundleVersion</key>
+	<string>#REVISION#</string>
 	<key>CFBundleSignature</key>
 	<string>VLC#</string>
 	<key>CFBundleURLTypes</key>
@@ -792,8 +794,6 @@
 			</array>
 		</dict>
 	</array>
-	<key>CFBundleVersion</key>
-	<string>@VERSION@</string>
 	<key>NSAppleScriptEnabled</key>
 	<string>YES</string>
 	<key>NSMainNibFile</key>




More information about the vlc-devel mailing list