summarylogtreecommitdiffstats
path: root/bubbros-use-python2.patch
blob: 1a35131c7c664f1017a71021a4f615b66f5acd54 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
diff -rupN bubbros-1.6.2.old/bubbob/bb.py bubbros-1.6.2/bubbob/bb.py
--- bubbros-1.6.2.old/bubbob/bb.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/bubbob/bb.py	2014-03-22 23:09:05.912252182 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 from __future__ import generators
 
@@ -211,12 +211,12 @@ def parse_cmdline(argv):
     # parse command-line
     def usage():
         print >> sys.stderr, 'usage:'
-        print >> sys.stderr, '  python bb.py'
-##        print >> sys.stderr, '  python bb.py [-w/--webbrowser=no]'
+        print >> sys.stderr, '  python2 bb.py'
+##        print >> sys.stderr, '  python2 bb.py [-w/--webbrowser=no]'
 ##        print >> sys.stderr, 'where:'
 ##        print >> sys.stderr, '  -w  --webbrowser=no  don''t automatically start web browser'
         print >> sys.stderr, 'or:'
-        print >> sys.stderr, '  python bb.py [level-file.bin] [-m] [-b#] [-s#] [-l#] [-M#]'
+        print >> sys.stderr, '  python2 bb.py [level-file.bin] [-m] [-b#] [-s#] [-l#] [-M#]'
         print >> sys.stderr, 'with options:'
         print >> sys.stderr, '  -m  --metaserver  register the server on the Metaserver so anyone can join'
         print >> sys.stderr, '  -b#  --begin #    start at board number # (default 1)'
diff -rupN bubbros-1.6.2.old/bubbob/doc/bonus-doc.py bubbros-1.6.2/bubbob/doc/bonus-doc.py
--- bubbros-1.6.2.old/bubbob/doc/bonus-doc.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/bubbob/doc/bonus-doc.py	2014-03-22 23:00:22.013598396 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 import os, sys, string, struct
 os.chdir(os.pardir)
diff -rupN bubbros-1.6.2.old/bubbob/images/buildcolors.py bubbros-1.6.2/bubbob/images/buildcolors.py
--- bubbros-1.6.2.old/bubbob/images/buildcolors.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/bubbob/images/buildcolors.py	2014-03-22 23:00:21.960264522 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 import sys, os
 
 if __name__ == '__main__':
diff -rupN bubbros-1.6.2.old/bubbob/Makefile bubbros-1.6.2/bubbob/Makefile
--- bubbros-1.6.2.old/bubbob/Makefile	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/bubbob/Makefile	2014-03-22 23:02:23.998168962 +0100
@@ -1,2 +1,2 @@
 statesaver.so: statesaver.c
-	python setup.py build_ext -i
+	python2 setup.py build_ext -i
diff -rupN bubbros-1.6.2.old/bubbob/setup.py bubbros-1.6.2/bubbob/setup.py
--- bubbros-1.6.2.old/bubbob/setup.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/bubbob/setup.py	2014-03-22 23:00:22.090265840 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 from distutils.core import setup
 from distutils.extension import Extension
diff -rupN bubbros-1.6.2.old/BubBob.py bubbros-1.6.2/BubBob.py
--- bubbros-1.6.2.old/BubBob.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/BubBob.py	2014-03-22 23:05:28.536709312 +0100
@@ -1,10 +1,10 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 #
 #  This script is used to start the server.
 #  For command-line usage please run
 #
-#    python bubbob/bb.py --help
+#    python2 bubbob/bb.py --help
 #
 
 # __________
diff -rupN bubbros-1.6.2.old/display/Client.py bubbros-1.6.2/display/Client.py
--- bubbros-1.6.2.old/display/Client.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/display/Client.py	2014-03-22 23:03:47.239013938 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 # __________
 import os, sys
@@ -29,7 +29,7 @@ def parse_cmdline(argv):
     # parse command-line
     def usage():
         print >> sys.stderr, 'usage:'
-        print >> sys.stderr, '  python Client.py [-d#] [-s#] [extra options] [host[:port]]'
+        print >> sys.stderr, '  python2 Client.py [-d#] [-s#] [extra options] [host[:port]]'
         print >> sys.stderr
         print >> sys.stderr, 'options:'
         print >> sys.stderr, '  host              search for a game on the given machine'
diff -rupN bubbros-1.6.2.old/display/Makefile bubbros-1.6.2/display/Makefile
--- bubbros-1.6.2.old/display/Makefile	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/display/Makefile	2014-03-22 23:02:23.998168962 +0100
@@ -1,2 +1,2 @@
 xshm.so: xshm.c
-	python setup.py build_ext -i
+	python2 setup.py build_ext -i
diff -rupN bubbros-1.6.2.old/display/pclient.py bubbros-1.6.2/display/pclient.py
--- bubbros-1.6.2.old/display/pclient.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/display/pclient.py	2014-03-22 23:00:21.800262900 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 import sys, os
 from socket import *
diff -rupN bubbros-1.6.2.old/display/playback.py bubbros-1.6.2/display/playback.py
--- bubbros-1.6.2.old/display/playback.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/display/playback.py	2014-03-22 23:00:21.763595860 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 import sys, os, gzip
 from socket import *
diff -rupN bubbros-1.6.2.old/display/setup.py bubbros-1.6.2/display/setup.py
--- bubbros-1.6.2.old/display/setup.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/display/setup.py	2014-03-22 23:00:21.810263001 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 from distutils.core import setup
 from distutils.extension import Extension
diff -rupN bubbros-1.6.2.old/doc/bb.py.1 bubbros-1.6.2/doc/bb.py.1
--- bubbros-1.6.2.old/doc/bb.py.1	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/doc/bb.py.1	2014-03-22 23:06:37.447409469 +0100
@@ -14,7 +14,7 @@ bb.py \- the bub-n-bros server.
 .I level-file.bin
 .BI "] [" options ]
 .br
-.B python bb.py [
+.B python2 bb.py [
 .I level-file.bin
 .BI "] [" options ]
 .PP
@@ -126,4 +126,4 @@ game servers.
 .SH SEE ALSO
 .BR BubBob.py (1)
 .BR Client.py (1)
-.BR python (1)
+.BR python2 (1)
diff -rupN bubbros-1.6.2.old/doc/BubBob.py.1 bubbros-1.6.2/doc/BubBob.py.1
--- bubbros-1.6.2.old/doc/BubBob.py.1	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/doc/BubBob.py.1	2014-03-22 23:06:28.663986877 +0100
@@ -12,7 +12,7 @@ BubBob.py \- Generic startup script for
 .SH SYNOPSIS
 .B BubBob.py
 .br
-.B python BubBob.py
+.B python2 BubBob.py
 
 .SH DESCRIPTION
 .B BubBob.py
@@ -28,5 +28,5 @@ on Unix systems.
 .SH SEE ALSO
 .BR bb.py (1)
 .BR Client.py (1)
-.BR python (1)
+.BR python2 (1)
 
diff -rupN bubbros-1.6.2.old/doc/Client.py.1 bubbros-1.6.2/doc/Client.py.1
--- bubbros-1.6.2.old/doc/Client.py.1	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/doc/Client.py.1	2014-03-22 23:06:19.927231432 +0100
@@ -10,7 +10,7 @@
 Client.py \- the bub-n-bros client
 
 .SH SYNOPSIS
-.B python Client.py [
+.B python2 Client.py [
 .I options
 .BI "] [" host [: port ]]
 .PP
@@ -61,7 +61,7 @@ option.
 MS Windows driver.
 .TP
 .B pygame
-PyGame gaming library for python (if installed) has video output. Use
+PyGame gaming library for python2 (if installed) has video output. Use
 it if this is specified. See
 .BR http://www.pygame.org " and the " --transparency " option."
 .TP
@@ -197,4 +197,4 @@ display driver. Scale output by
 .SH SEE ALSO
 .BR bb.py (1)
 .BR Client.py (1)
-.BR python (1)
\ No newline at end of file
+.BR python2 (1)
\ No newline at end of file
diff -rupN bubbros-1.6.2.old/http2/sf/bb12.py bubbros-1.6.2/http2/sf/bb12.py
--- bubbros-1.6.2.old/http2/sf/bb12.py	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/http2/sf/bb12.py	2014-03-22 23:00:22.270267666 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python2
 
 import cgi, os, string, time
 form = cgi.FieldStorage()
diff -rupN bubbros-1.6.2.old/Makefile bubbros-1.6.2/Makefile
--- bubbros-1.6.2.old/Makefile	2013-10-10 11:42:30.000000000 +0200
+++ bubbros-1.6.2/Makefile	2014-03-22 23:02:23.998168962 +0100
@@ -8,7 +8,7 @@ MANGROUP=root
 MANDIR=/usr/local/man
 
 INSTALL=install
-PYTHON=python
+PYTHON=python2
 
 export # we export all variales to sub-makes
 
@@ -18,8 +18,8 @@ all:
 	@echo -------------------------------------------------------------
 	@echo \'make\' successful.
 	@echo ' '
-	@echo ' Start the game interactively with: python BubBob.py'
-	@if [ -e bubbob ]; then echo ' Server only (pure command-line): python bubbob/bb.py --help'; else echo ' Only the client is installed here.'; fi
+	@echo ' Start the game interactively with: python2 BubBob.py'
+	@if [ -e bubbob ]; then echo ' Server only (pure command-line): python2 bubbob/bb.py --help'; else echo ' Only the client is installed here.'; fi
 	@echo ' '
 	@echo -------------------------------------------------------------
 
@@ -28,7 +28,7 @@ clean:
 	-rm -f `find -name "*.py[co]"`
 	-rm -fr `find -name "build"`
 	make -C doc clean
-	cd bubbob/images && python buildcolors.py -c
+	cd bubbob/images && python2 buildcolors.py -c
 	rm -fr cache
 
 sync: magma-sync codespeak-sync
@@ -40,7 +40,7 @@ codespeak-sync:
 	rsync --delete -avz -e ssh ${HOME}/games/metaserver ${HOME}/games/common codespeak.net:games/
 
 meta:
-	ssh codespeak.net python games/metaserver/metaserver.py -f
+	ssh codespeak.net python2 games/metaserver/metaserver.py -f
 
 docs:
 	make -C doc