Package: ucblogo / 6.0+dfsg-2

strip_svn_version.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From: Reiner Herrmann <reiner@reiner-h.de>
Date: Sun, 10 Apr 2016 21:01:57 +0200
Subject: no svn

Don't include unavailable svn info in version.

Strip unavailable svn information.

(Consider adding git commit id.)
---
 main.c      | 4 ----
 makefile.in | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/main.c b/main.c
index ad14663..c4956ec 100644
--- a/main.c
+++ b/main.c
@@ -270,14 +270,10 @@ int main(int argc, char *argv[]) {
       if (1 || isatty(1))   // fix this.  for interactive from menu bar.
 #endif
       {
-#ifdef HAVE_WX
-	extern char *SVN;
-#endif
 	char version[20];
 	lcleartext(NIL);
 #ifdef HAVE_WX
 	strcpy(version,"6.0");
-	strcat(version,SVN);
 #else
 	strcpy(version,"5.6");
 #endif
diff --git a/makefile.in b/makefile.in
index a2e12d3..baaec6b 100644
--- a/makefile.in
+++ b/makefile.in
@@ -13,7 +13,7 @@ LINKER = @LINKER@
 
 OBJS 	= coms.o error.o eval.o files.o graphics.o init.o intern.o \
 	  libloc.o lists.o logodata.o main.o math.o mem.o paren.o parse.o \
-	  print.o wrksp.o nographics.o svn.o @WXOFILES@ @TERMOFILE@ @GRAPHICSOFILE@
+	  print.o wrksp.o nographics.o @WXOFILES@ @TERMOFILE@ @GRAPHICSOFILE@
 
 SRCS	= coms.c error.c eval.c files.c graphics.c init.c intern.c \
 	  libloc.c lists.c logodata.c main.c math.c mem.c paren.c parse.c \