diff --git a/Makefile.common b/Makefile.common
index 83c6da2..8755e2e 100644
a
|
b
|
VER_EXTRA = $(shell echo $(VERSION) | cut -d. -f 3 | cut -c2-)
|
169 | 169 | # Get Subversion's working copy information |
170 | 170 | ###################################################################### |
171 | 171 | |
| 172 | ifeq "$(HAVE_SVN)" "1" |
172 | 173 | ifeq ($(shell LANG=C svn stat $(srcdir) 2>&1 | grep "is not a working copy"),) |
173 | 174 | SVNROOT := $(srcdir) |
174 | 175 | ifeq ($(origin SVNREV), undefined) |
… |
… |
endif
|
184 | 185 | ifneq ($(origin VER_SVNREV), undefined) |
185 | 186 | CXXFLAGS+= -DSCUMMVM_SVN_REVISION=\"$(VER_SVNREV)\" |
186 | 187 | endif |
| 188 | endif |
187 | 189 | |
188 | 190 | |
189 | 191 | ###################################################################### |
… |
… |
DISTDIR := dist
|
205 | 207 | VERFILE := $(DISTDIR)/$(DISTNAME)/base/internal_version.h |
206 | 208 | |
207 | 209 | $(VERFILE): $(srcdir)/base/internal_version.h |
| 210 | ifeq "$(HAVE_SVN)" "1" |
208 | 211 | @$(RM_REC) $(DISTDIR) |
209 | 212 | @$(MKDIR) $(DISTDIR) |
210 | 213 | svn export $(SVNROOT) $(DISTDIR)/$(DISTNAME) |
… |
… |
ifneq ($(origin VER_SVNREV), undefined)
|
214 | 217 | "s/^#define SCUMMVM_SVN_REVISION$$/#define SCUMMVM_SVN_REVISION \"$(VER_SVNREV)\"/g" \ |
215 | 218 | > $(VERFILE) |
216 | 219 | endif |
| 220 | else |
| 221 | @echo "No SVN client installed. Cannot export repository." |
| 222 | @exit 1 |
| 223 | endif |
217 | 224 | |
218 | 225 | $(DISTDIR)/$(DISTNAME).tar.gz: $(VERFILE) |
219 | 226 | cd $(DISTDIR); tar zcf $(DISTNAME).tar.gz $(DISTNAME) |
diff --git a/configure b/configure
index 7bfeed4..52d6220 100755
a
|
b
|
add_to_config_h_if_yes $_nasm '#define USE_NASM'
|
2198 | 2198 | add_to_config_mk_if_yes $_nasm 'USE_NASM = 1' |
2199 | 2199 | |
2200 | 2200 | # |
| 2201 | # Check whether svn is installed |
| 2202 | # |
| 2203 | |
| 2204 | echocheck svn |
| 2205 | if type svn ; then |
| 2206 | echo "found" |
| 2207 | _svn=yes |
| 2208 | else |
| 2209 | echo "not found" |
| 2210 | _svn=no |
| 2211 | fi |
| 2212 | |
| 2213 | add_to_config_mk_if_yes $_svn 'HAVE_SVN = 1' |
| 2214 | |
| 2215 | # |
2201 | 2216 | # Enable vkeybd / keymapper |
2202 | 2217 | # |
2203 | 2218 | if test "$_vkeybd" = yes ; then |