[Scummvm-cvs-logs] SF.net SVN: scummvm:[39533] scummvm/trunk/Makefile.common

jvprat at users.sourceforge.net jvprat at users.sourceforge.net
Thu Mar 19 20:42:22 CET 2009


Revision: 39533
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39533&view=rev
Author:   jvprat
Date:     2009-03-19 19:42:22 +0000 (Thu, 19 Mar 2009)

Log Message:
-----------
Use the current SVN revision as a default when distributing a snapshot sources

Modified Paths:
--------------
    scummvm/trunk/Makefile.common

Modified: scummvm/trunk/Makefile.common
===================================================================
--- scummvm/trunk/Makefile.common	2009-03-19 19:17:29 UTC (rev 39532)
+++ scummvm/trunk/Makefile.common	2009-03-19 19:42:22 UTC (rev 39533)
@@ -166,8 +166,12 @@
 ######################################################################
 
 ifeq ($(VER_EXTRA),svn)
+ifeq ($(origin VER_SVNREV), undefined)
 DISTVERSION = $(shell date '+%Y-%m-%d')
 else
+DISTVERSION = svn$(VER_SVNREV)
+endif
+else
 DISTVERSION = $(VERSION)
 endif
 
@@ -179,6 +183,12 @@
 	@$(RM_REC) $(DISTDIR)
 	@$(MKDIR) $(DISTDIR)
 	svn export $(SVNROOT) $(DISTDIR)/$(DISTNAME)
+ifneq ($(origin VER_SVNREV), undefined)
+	@# Use the current SVN revision as a default for the snapshot sources
+	@svn cat $(SVNROOT)/base/internal_version.h | sed -e \
+		"s/^#define SCUMMVM_SVN_REVISION$$/#define SCUMMVM_SVN_REVISION \"$(VER_SVNREV)\"/g" \
+		> $(VERFILE)
+endif
 
 $(DISTDIR)/$(DISTNAME).tar.gz: $(VERFILE)
 	cd $(DISTDIR); tar zcf $(DISTNAME).tar.gz $(DISTNAME)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list