[Scummvm-cvs-logs] SF.net SVN: scummvm:[55898] scummvm/trunk
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Sat Feb 12 17:43:58 CET 2011
Revision: 55898
http://scummvm.svn.sourceforge.net/scummvm/?rev=55898&view=rev
Author: jvprat
Date: 2011-02-12 16:43:57 +0000 (Sat, 12 Feb 2011)
Log Message:
-----------
BUILD: Remove explicit references to SVN in revision variable names.
Modified Paths:
--------------
scummvm/trunk/Makefile.common
scummvm/trunk/backends/platform/dc/dreamcast.mk
scummvm/trunk/backends/platform/psp/psp.mk
scummvm/trunk/backends/platform/wii/wii.mk
scummvm/trunk/base/internal_version.h
scummvm/trunk/base/internal_version.h.in
scummvm/trunk/base/plugins.h
scummvm/trunk/tools/create_project/msbuild.cpp
Modified: scummvm/trunk/Makefile.common
===================================================================
--- scummvm/trunk/Makefile.common 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/Makefile.common 2011-02-12 16:43:57 UTC (rev 55898)
@@ -168,9 +168,9 @@
ifneq ($(shell svn info $(srcdir) 1>/dev/null 2>&1 || echo "error"),error)
SVNROOT := $(srcdir)
-ifeq ($(origin VER_SVNREV), undefined)
+ifeq ($(origin VER_REV), undefined)
# Get the working copy base revision
-VER_SVNREV := $(shell LANG=C svn info $(SVNROOT) | grep "^Revision" | cut -d ' ' -f 2)
+VER_REV := $(shell LANG=C svn info $(SVNROOT) | grep "^Revision" | cut -d ' ' -f 2)
endif
else
SVNROOT := https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk/
@@ -178,8 +178,8 @@
# Define the Subversion revision if available, either autodetected or
# specified by the user, but only for base/version.cpp.
-ifneq ($(origin VER_SVNREV), undefined)
-base/version.o: CXXFLAGS:=$(CXXFLAGS) -DSCUMMVM_SVN_REVISION=\"$(VER_SVNREV)\"
+ifneq ($(origin VER_REV), undefined)
+base/version.o: CXXFLAGS:=$(CXXFLAGS) -DSCUMMVM_REVISION=\"$(VER_REV)\"
endif
######################################################################
@@ -187,10 +187,10 @@
######################################################################
ifeq ($(VER_EXTRA),svn)
-ifeq ($(origin VER_SVNREV), undefined)
+ifeq ($(origin VER_REV), undefined)
DISTVERSION = $(shell date '+%Y-%m-%d')
else
-DISTVERSION = svn$(VER_SVNREV)
+DISTVERSION = svn$(VER_REV)
endif
else
DISTVERSION = $(VERSION)
@@ -204,10 +204,10 @@
@$(RM_REC) $(DISTDIR)
@$(MKDIR) $(DISTDIR)
svn export $(SVNROOT) $(DISTDIR)/$(DISTNAME)
-ifneq ($(origin VER_SVNREV), undefined)
+ifneq ($(origin VER_REV), 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" \
+ "s/^#define SCUMMVM_REVISION$$/#define SCUMMVM_REVISION \"$(VER_REV)\"/g" \
> $(VERFILE)
endif
Modified: scummvm/trunk/backends/platform/dc/dreamcast.mk
===================================================================
--- scummvm/trunk/backends/platform/dc/dreamcast.mk 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/backends/platform/dc/dreamcast.mk 2011-02-12 16:43:57 UTC (rev 55898)
@@ -29,7 +29,7 @@
ip.txt : $(srcdir)/backends/platform/dc/ip.txt.in
if [ x"$(VER_EXTRA)" = xsvn ]; then \
- if [ -z "$(VER_SVNREV)" ]; then ver="SVN"; else ver="r$(VER_SVNREV)"; fi; \
+ if [ -z "$(VER_REV)" ]; then ver="SVN"; else ver="r$(VER_REV)"; fi; \
else ver="V$(VERSION)"; fi; \
if expr "$$ver" : V...... >/dev/null; then \
ver="V$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)"; fi; \
Modified: scummvm/trunk/backends/platform/psp/psp.mk
===================================================================
--- scummvm/trunk/backends/platform/psp/psp.mk 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/backends/platform/psp/psp.mk 2011-02-12 16:43:57 UTC (rev 55898)
@@ -15,7 +15,7 @@
$(STRIP) $< -o $@
$(PSP_EBOOT_SFO): $(EXECUTABLE)
- $(MKSFO) '$(PSP_EBOOT_TITLE) r$(VER_SVNREV) ($(DATE))' $@
+ $(MKSFO) '$(PSP_EBOOT_TITLE) r$(VER_REV) ($(DATE))' $@
psp_clean:
$(RM) $(PSP_EXE_STRIPPED) $(PSP_EBOOT) $(PSP_EBOOT_SFO)
Modified: scummvm/trunk/backends/platform/wii/wii.mk
===================================================================
--- scummvm/trunk/backends/platform/wii/wii.mk 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/backends/platform/wii/wii.mk 2011-02-12 16:43:57 UTC (rev 55898)
@@ -30,7 +30,7 @@
else
$(STRIP) $(EXECUTABLE) -o wiidist/scummvm/boot.elf
$(CP) $(srcdir)/dists/wii/icon.png wiidist/scummvm/
- sed "s/@REVISION@/$(VER_SVNREV)/;s/@TIMESTAMP@/`date +%Y%m%d%H%M%S`/" < $(srcdir)/dists/wii/meta.xml > wiidist/scummvm/meta.xml
+ sed "s/@REVISION@/$(VER_REV)/;s/@TIMESTAMP@/`date +%Y%m%d%H%M%S`/" < $(srcdir)/dists/wii/meta.xml > wiidist/scummvm/meta.xml
endif
ifeq ($(DYNAMIC_MODULES),1)
$(MKDIR) wiidist/scummvm/plugins
Modified: scummvm/trunk/base/internal_version.h
===================================================================
--- scummvm/trunk/base/internal_version.h 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/base/internal_version.h 2011-02-12 16:43:57 UTC (rev 55898)
@@ -3,11 +3,11 @@
#endif
#ifdef RELEASE_BUILD
-#undef SCUMMVM_SVN_REVISION
+#undef SCUMMVM_REVISION
#endif
-#ifndef SCUMMVM_SVN_REVISION
-#define SCUMMVM_SVN_REVISION
+#ifndef SCUMMVM_REVISION
+#define SCUMMVM_REVISION
#endif
-#define SCUMMVM_VERSION "1.3.0svn" SCUMMVM_SVN_REVISION
+#define SCUMMVM_VERSION "1.3.0svn" SCUMMVM_REVISION
Modified: scummvm/trunk/base/internal_version.h.in
===================================================================
--- scummvm/trunk/base/internal_version.h.in 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/base/internal_version.h.in 2011-02-12 16:43:57 UTC (rev 55898)
@@ -3,11 +3,11 @@
#endif
#ifdef RELEASE_BUILD
-#undef SCUMMVM_SVN_REVISION
+#undef SCUMMVM_REVISION
#endif
-#ifndef SCUMMVM_SVN_REVISION
-#define SCUMMVM_SVN_REVISION
+#ifndef SCUMMVM_REVISION
+#define SCUMMVM_REVISION
#endif
-#define SCUMMVM_VERSION "@VERSION@" SCUMMVM_SVN_REVISION
+#define SCUMMVM_VERSION "@VERSION@" SCUMMVM_REVISION
Modified: scummvm/trunk/base/plugins.h
===================================================================
--- scummvm/trunk/base/plugins.h 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/base/plugins.h 2011-02-12 16:43:57 UTC (rev 55898)
@@ -73,7 +73,7 @@
};
// TODO: Make the engine API version depend on ScummVM's version
-// because of the backlinking (posibly from the SVN revision)
+// because of the backlinking (posibly from the checkout revision)
#define PLUGIN_TYPE_ENGINE_VERSION 1
#define PLUGIN_TYPE_MUSIC_VERSION 1
Modified: scummvm/trunk/tools/create_project/msbuild.cpp
===================================================================
--- scummvm/trunk/tools/create_project/msbuild.cpp 2011-02-12 16:20:57 UTC (rev 55897)
+++ scummvm/trunk/tools/create_project/msbuild.cpp 2011-02-12 16:43:57 UTC (rev 55898)
@@ -440,7 +440,7 @@
"\t\t\t<ObjectFileName>$(IntDir)" << (*entry).prefix << "%(Filename).obj</ObjectFileName>\n";
if (hasEnding((*entry).path, "base\\version.cpp"))
- projectFile << "\t\t\t<PreprocessorDefinitions Condition=\"'$(Configuration)'=='Debug'\">SCUMMVM_SVN_REVISION#" $(SCUMMVM_REVISION_STRING)";%(PreprocessorDefinitions)</PreprocessorDefinitions>\n";
+ projectFile << "\t\t\t<PreprocessorDefinitions Condition=\"'$(Configuration)'=='Debug'\">SCUMMVM_REVISION#" $(SCUMMVM_REVISION_STRING)";%(PreprocessorDefinitions)</PreprocessorDefinitions>\n";
projectFile << "\t\t</ClCompile>\n";
} else {
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