2010-10-17 19:59:51 +00:00
|
|
|
$OpenBSD: patch-Makefile_common,v 1.4 2010/10/17 19:59:51 jsg Exp $
|
|
|
|
--- Makefile.common.orig Sun Oct 17 15:47:53 2010
|
|
|
|
+++ Makefile.common Sun Oct 17 15:48:25 2010
|
|
|
|
@@ -156,27 +156,6 @@ VER_MINOR = $(shell echo $(VERSION) | cut -d. -f 2)
|
2010-07-13 21:23:39 +00:00
|
|
|
VER_PATCH = $(shell echo $(VERSION) | cut -d. -f 3 | cut -c1)
|
|
|
|
VER_EXTRA = $(shell echo $(VERSION) | cut -d. -f 3 | cut -c2-)
|
|
|
|
|
|
|
|
-
|
|
|
|
-######################################################################
|
|
|
|
-# Get Subversion's working copy information
|
|
|
|
-######################################################################
|
|
|
|
-
|
2010-10-17 19:59:51 +00:00
|
|
|
-ifneq ($(shell svn info $(srcdir) 1>/dev/null 2>&1 || echo "error"),error)
|
2010-07-13 21:23:39 +00:00
|
|
|
-SVNROOT := $(srcdir)
|
2010-10-17 19:59:51 +00:00
|
|
|
-ifeq ($(origin VER_SVNREV), undefined)
|
2010-07-13 21:23:39 +00:00
|
|
|
-# Get the working copy base revision
|
|
|
|
-VER_SVNREV := $(shell LANG=C svn info $(SVNROOT) | grep "^Revision" | cut -d ' ' -f 2)
|
|
|
|
-endif
|
|
|
|
-else
|
|
|
|
-SVNROOT := https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk/
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-# Define the Subversion revision if available, either autodetected or
|
2010-10-17 19:59:51 +00:00
|
|
|
-# specified by the user, but only for base/version.cpp.
|
2010-07-13 21:23:39 +00:00
|
|
|
-ifneq ($(origin VER_SVNREV), undefined)
|
2010-10-17 19:59:51 +00:00
|
|
|
-base/version.o: CXXFLAGS:=$(CXXFLAGS) -DSCUMMVM_SVN_REVISION=\"$(VER_SVNREV)\"
|
2010-07-13 21:23:39 +00:00
|
|
|
-endif
|
|
|
|
-
|
|
|
|
######################################################################
|
|
|
|
# Distribution settings
|
|
|
|
######################################################################
|