]> git.sur5r.net Git - cc65/commitdiff
Fix SVN version stuff. The old implementation apparently had problems with
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 29 Dec 2011 21:18:23 +0000 (21:18 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 29 Dec 2011 21:18:23 +0000 (21:18 +0000)
subversion >= 1.7.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5349 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/make/gcc.mak
src/cc65/make/watcom.mak

index 6116331f14407031d7900397a25ef31e16062019..76b0f08a9cb4e8a9bd66fc1ef01c320362a71ccb 100644 (file)
@@ -28,6 +28,12 @@ LDFLAGS = -lm
 # Determine the svn version number if possible
 ifneq "$(shell which svnversion 2>/dev/null)" ""
 SVNVERSION=$(shell svnversion)
+ifeq "$(SVNVERSION)" "exported"
+SVNVERSION=unknown
+endif
+ifeq "$(SVNVERSION)" "Unversioned directory"
+SVNVERSION=unknown
+endif
 else
 SVNVERSION=unknown
 endif
index ea83b0e1b08c3d421191a39a4163071b01b78b4f..a5f2887cd6f9fec911da2dfb3aa8438cc38fa04f 100644 (file)
@@ -29,9 +29,11 @@ EXE  = cc65.exe
 
 # Determine the svn version number if possible
 ifneq "$(shell which svnversion 2>/dev/null)" ""
-ifneq "$(wildcard .svn)" ""
 SVNVERSION=$(shell svnversion)
-else
+ifeq "$(SVNVERSION)" "exported"
+SVNVERSION=unknown
+endif
+ifeq "$(SVNVERSION)" "Unversioned directory"
 SVNVERSION=unknown
 endif
 else