gitso

gitso Commit Details


Date:2010-01-31 17:38:03 (14 years 10 months ago)
Author:gerberad
Branch:master
Commit:5b3cebbf7b7e97f2cae02f5fef43cd680d4e20d4
Parents: d558b03d6b5a4e586f935370cc16b7f91d7c88a9
Message:/gitso.svg Deleted old logo.

/AboutWindow.py
/ConnectionWindow.py
/Processes.py
/ArgsParser.py
/GitsoThread.py
/COPYING
/makegitso.nsi
/Gitso.py
Updated copyright year

/makegitso.sh
Reorganized how the command-line options were setup. How the cleaning worked, variable names, etc....

/arch/linux/build_rpm.sh
Updated copyright file include.

/arch/linux/gitso_rpm_fedora.spec
Reordered things so they were easier to read.
Changes:

File differences

gitso/trunk/AboutWindow.py
99
1010
1111
12
12
1313
1414
1515
......
3131
3232
3333
34
34
3535
3636
3737
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008, 2009
@copyright: 2008 - 2010
Gitso is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
infostring = "Authors:" + "\n\tAaron Gerber\n\tDerek Buranen"
infostring = infostring + "\n\nContributors:" + "\n\tNick Verbeck" + "\n\tTroy Frew"
infostring = infostring + "\n\nCopyright (C) 2007 - 2009 by Aaron Gerber and Derek Buranen"
infostring = infostring + "\n\nCopyright (C) 2007 - 2010 by Aaron Gerber and Derek Buranen"
if sys.platform == "darwin":
infostring = infostring + "\n\n+++++++++++++++++++++++"
infostring = infostring + "\nChicken Of The VNC:"
gitso/trunk/ArgsParser.py
77
88
99
10
10
1111
1212
1313
......
5959
6060
6161
62
62
6363
6464
6565
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008, 2009
@copyright: 2008 - 2010
Gitso is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
if sys.argv[i] == '--help': # --help
self.HelpMenu()
elif sys.argv[i] == '--version': # --version
print "Gitso 0.6 -- Copyright 2007 - 2009 Aaron Gerber and Derek Buranen."
print "Gitso 0.6 -- Copyright 2007 - 2010 Aaron Gerber and Derek Buranen."
exit(0)
elif sys.argv[i] == '--dev': # --dev
print "Running in 'Development Mode'"
gitso/trunk/COPYING
11
22
3
3
44
55
66
Gisto - Gitso is to support others
Copyright 2008, 2009: Aaron Gerber, Derek Buranen
Copyright 2008 - 2010: Aaron Gerber, Derek Buranen
Gitso is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
gitso/trunk/ConnectionWindow.py
77
88
99
10
10
1111
1212
1313
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008, 2009
@copyright: 2008 - 2010
Gitso is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
gitso/trunk/Gitso.py
77
88
99
10
10
1111
1212
1313
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008, 2009
@copyright: 2008 - 2010
Gitso is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
gitso/trunk/GitsoThread.py
77
88
99
10
10
1111
1212
1313
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008, 2009
@copyright: 2008 - 2010
Gitso is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
gitso/trunk/Processes.py
77
88
99
10
10
1111
1212
1313
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008, 2009
@copyright: 2008 - 2010
Gitso is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
gitso/trunk/arch/linux/build_rpm.sh
11
2
32
3
44
55
6
67
78
8
9
10
11
12
913
1014
1115
......
1822
1923
2024
21
25
2226
2327
2428
......
3539
3640
3741
38
#! /bin/bash
echo -e "Setting up RPM build-root!"
# Check parameters
if test "$1" = ""; then
echo -e "************************\nError: No arguments were given to build_rpm.sh\n************************\n"
exit 1
fi
BUILD_ROOT="$1/rpm/tmp/gitso-root"
echo -e "Setting up RPM build-root!\n\t"
echo -e "'$1'\n"
BUILD_ROOT="$HOME/rpmbuild/BUILDROOT/gitso-0.6-1.i386"
mkdir -p $BUILD_ROOT/usr/bin/
mkdir -p $BUILD_ROOT/usr/share/gitso/
chmod 755 $BUILD_ROOT/usr/bin/gitso
cp arch/linux/gitso.desktop $BUILD_ROOT/usr/share/applications/
cp copyright $BUILD_ROOT/usr/share/doc/gitso/
cp COPYING $BUILD_ROOT/usr/share/doc/gitso/
cp arch/linux/README.txt $BUILD_ROOT/usr/share/doc/gitso/README
gzip -cf arch/linux/changelog > $BUILD_ROOT/usr/share/doc/gitso/changelog.gz
gzip -cf arch/linux/gitso.1 > $BUILD_ROOT/usr/share/man/man1/gitso.1.gz
gitso/trunk/arch/linux/gitso_rpm_fedora.spec
1
2
1
32
43
54
65
7
6
87
98
10
9
1110
1211
1312
1413
1514
1615
17
16
1817
19
20
21
18
19
20
2221
2322
2423
......
4140
4241
4342
44
43
4544
4645
4746
48
49
50
51
52
47
5348
49
5450
55
5651
52
53
54
5755
56
5857
5958
6059
%define _topdir %(echo $HOME)/rpm
%define _topdir %(echo $HOME)/rpm
%define _tmppath %{_topdir}/tmp
%define _prefix /usr/share
%define _defaultdocdir %{_prefix}/doc
%define _mandir %{_prefix}/man
%define buildroot%{_tmppath}/gitso-root
%define buildroot%{_tmppath}/gitso-root
Name:gitso
Name:gitso
Summary:Gitso - Is to Support Others
Version:0.6
Release:1
License:GPL 3
Group:Internet
Source:http://gitso.googlecode.com/files/gitso_0.6_src.tar.bz2
URL:http://code.google.com/p/gitso/
URL:http://code.google.com/p/gitso/
Requires:python, vnc, vnc-server, wxGTK, wxPython
Buildroot:%{_tmppath}/gitso-root
Packager: Aaron Gerber
Requires:python, vnc, x11vnc, vnc-server, wxGTK, wxPython
Buildroot:%{_tmppath}/gitso-root
Packager: Aaron Gerber
%{_prefix}/applications/gitso.desktop
%{_prefix}/doc/gitso/copyright
%{_prefix}/doc/gitso/COPYING
%{_prefix}/doc/gitso/README
%{_prefix}/doc/gitso/changelog.gz
%{_prefix}/gitso/icon.png
%{_prefix}/gitso/ArgsParser.py
%{_prefix}/gitso/__init__.py
%{_prefix}/gitso/hosts.txt
%{_prefix}/gitso/AboutWindow.py
%{_prefix}/gitso/Gitso.py
%{_prefix}/gitso/ConnectionWindow.py
%{_prefix}/gitso/AboutWindow.py
%{_prefix}/gitso/GitsoThread.py
%{_prefix}/gitso/Gitso.py
%{_prefix}/gitso/Processes.py
%{_prefix}/gitso/ArgsParser.py
%{_prefix}/gitso/__init__.py
%{_prefix}/gitso/hosts.txt
%{_prefix}/gitso/icon.ico
%{_prefix}/gitso/icon.png
%{_mandir}/man1/gitso.1.gz
gitso/trunk/gitso.svg
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg2383"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docname="gitso3.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/gerberad/Desktop/gitso3.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2385">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="-49.09091 : 33.272728 : 1"
inkscape:vp_y="32 : 1021.3333 : 1"
inkscape:vp_z="63.454546 : 41.818181 : 1"
inkscape:persp3d-origin="32 : 21.333333 : 1"
id="perspective2391" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.5"
inkscape:cx="-0.54545455"
inkscape:cy="42.263636"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1280"
inkscape:window-height="800"
inkscape:window-x="0"
inkscape:window-y="0" />
<metadata
id="metadata2388">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<path
sodipodi:type="arc"
style="fill:#2e3436;stroke:#729fcf;stroke-width:14.42520332;stroke-miterlimit:4.5;stroke-dasharray:none;stroke-opacity:1"
id="path2395"
sodipodi:cx="37.81818"
sodipodi:cy="22.09091"
sodipodi:rx="20.727272"
sodipodi:ry="7.181818"
d="M 58.545452,22.09091 A 20.727272,7.181818 0 1 1 17.090908,22.09091 A 20.727272,7.181818 0 1 1 58.545452,22.09091 z"
transform="matrix(0.8996204,0,0,1.9022249,-2.4645807,-7.0777943)" />
<path
id="path4977"
style="fill:#204a87;stroke:#729fcf;stroke-width:0.51222664;stroke-linecap:butt;stroke-linejoin:round;marker-start:none;stroke-miterlimit:4.5;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="M 0.87501458,25.341592 C 3.4843615,23.555181 5.8404197,21.478791 8.2017001,19.429132 C 10.147118,17.831472 11.922549,16.062621 13.897453,14.496071 C 17.20697,12.224582 20.864745,10.446804 24.749434,9.2201175 C 26.376074,8.7309275 27.993747,8.2457019 29.65355,7.8544548 C 31.936485,7.2734074 34.188753,6.5485655 36.55764,6.3453958 C 38.62987,6.1631739 40.564688,6.6500794 42.408016,7.4706417 C 43.722156,8.0551693 44.845184,8.8511505 45.891704,9.7719845 C 46.826813,10.687692 47.756763,11.611221 48.664318,12.550974 C 49.49705,13.507394 50.526122,14.284923 51.432533,15.177784 C 52.262959,15.919533 52.912367,16.82523 53.805914,17.503985 C 54.6205,18.309915 55.675648,18.83715 56.627355,19.482088 C 57.580866,20.018695 58.50111,20.613622 59.483858,21.106534 C 60.312494,21.479634 61.152092,21.846403 61.959851,22.256889 C 62.450941,22.41995 62.895485,22.670435 63.362905,22.880631 L 57.344732,26.504161 C 56.038736,25.91336 54.736852,25.315688 53.442232,24.699638 C 52.46836,24.162519 51.522298,23.582178 50.577629,23.003979 C 47.620511,20.873492 45.378715,20.419398 41.973165,18.951443 C 37.544736,16.932824 30.354647,15.032673 25.373071,15.920328 C 18.088179,21.568179 13.040739,18.5508 7.5747916,22.918703 L 0.87501458,25.341592 z"
sodipodi:nodetypes="cccccssccccccccccccccc" />
<path
sodipodi:type="arc"
style="opacity:0.76859502;fill:#2e3436;stroke:#8f5902;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.5;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4966"
sodipodi:cx="31.636364"
sodipodi:cy="35.545456"
sodipodi:rx="11.454545"
sodipodi:ry="5.3636365"
d="M 43.090909,35.545456 A 11.454545,5.3636365 0 1 1 20.181819,35.545456 A 11.454545,5.3636365 0 1 1 43.090909,35.545456 z"
transform="matrix(1.259179,0,0,1.5337732,-9.4239479,-19.968588)" />
</g>
</svg>
gitso/trunk/makegitso.nsi
22
33
44
5
5
66
77
88
; ----------------
; Package Gitso for Windows using NSIS
;
; Copyright 2008, 2009: Aaron Gerber and Derek Buranen
; Copyright 2008 - 2010: Aaron Gerber and Derek Buranen
;
; Gitso is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
gitso/trunk/makegitso.sh
33
44
55
6
6
77
88
99
......
2020
2121
2222
23
24
25
26
27
28
29
23
24
25
26
3027
28
29
30
3131
3232
3333
34
35
36
37
38
39
40
41
42
43
44
45
46
3447
48
49
3550
3651
3752
......
4055
4156
4257
58
59
60
61
62
4363
4464
4565
46
66
4767
4868
4969
......
5777
5878
5979
60
80
6181
62
63
82
83
6484
6585
66
86
6787
6888
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
84104
85105
86106
87107
88108
89109
90
91
92
110
111
112
93113
94
95
114
115
96116
97117
98
118
99119
100120
101121
122
123
124
125
126
102127
103128
104129
105
130
106131
107132
108133
109134
110135
111136
112
137
113138
114
115
139
140
116141
117142
118
143
119144
120145
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
136161
137162
138163
139164
140165
141166
142
143
144
167
168
169
145170
146
147
171
172
148173
149174
150
175
151176
152177
153178
154179
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
180
181
182
183
184
185
186
187
188
189
171190
172
173
174191
175192
176
177193
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
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
196223
197224
198
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
199256
200257
201258
......
218275
219276
220277
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
278279
279
280
281
282
283
284
285
286
287
288
289
290
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
291338
339
292340
293341
294342
......
297345
298346
299347
300
301
302
303
304
305
306348
307
308
349
350
351
352
309353
354
355
356
310357
358
359
360
311361
312
362
313363
314364
315
365
316366
317367
318
368
319369
320370
321
322
323
324
325
326371
372
327373
374
375
376
377
378
379
380
381
382
383
384
##########
# Gisto - Gitso is to support others
#
# Copyright 2008, 2009: Aaron Gerber, Derek Buranen
# Copyright 2008 - 2010: Aaron Gerber, Derek Buranen
#
# Gitso is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
##########
DMG_OSX_106="Gitso_0.6_SnowLeopard.dmg"
DMG_OSX_105="Gitso_0.6_Leopard.dmg"
DEB="gitso_0.6_all.deb"
TARGZ="gitso_0.6_all.tar.gz"
SRC="gitso_0.6_src.tar.bz2"
RPM="gitso-0.6-1.i586.rpm"
RPMOUT="gitso_0.6-1_opensuse.i586.rpm"
##
# Helper methods
############################
#
# Creates the source package, works on all UNIX/LINUX based platforms
#
function mksrc {
P=`pwd`
TMP_PKG="../pkg"
# Clean up first.
find . -name "*~" -exec rm {} ';'
rm -rf $OSX_BUILD_DIR
rm -rf $RPM_BUILD_DIR
rm -rf $DEB_BUILD_DIR
rm -rf $DEB_TARGZ_PATH
rm -rf $P/*.bz2
rm -rf $P/*.tar
rm -rf $P/*.gz
rm -rf $P/*.app
rm -rf $P/*.dmg
rm -rf $P/*.exe
rm -rf $TMP_PKG
# Create the SRC file
mkdir -p $TMP_PKG/trunk/
cp -r ./ $TMP_PKG/trunk/
find $TMP_PKG/trunk -name ".svn" -exec rm -rf {} 2>&1 > /dev/null ';' 2>&1 > /dev/null
rm -rf $TMP_PKG
}
#
# Create the .app folder for snow leopard, it uses a different version of pythong
# And because py2app needs to know there, we just use different config files.
#
function snowLeopardDMG {
echo -e "Creating Gitso.app "
rm -f setup.py
rm -rf dist
rm -rf $OSX_BUILD_DIR
#echo -e ".."
#py2applet --make-setup Gitso.py
#rm setup.py
echo -e ".."
cp arch/osx/Info_OSX-10.6.plist dist/Gitso.app/Contents/
cp arch/osx/Info_OSX-10.6.plist $OSX_BUILD_DIR/Gitso.app/Contents/
cp COPYING dist/Gitso.app/Contents/Resources/
cp PythonApplet.icns dist/Gitso.app/Contents/Resources/
cp COPYING $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp PythonApplet.icns $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/OSXvnc.tar.gz
mv OSXvnc dist/Gitso.app/Contents/Resources/
mv OSXvnc $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/cotvnc.app.tar.gz
mv cotvnc.app dist/Gitso.app/Contents/Resources/
cp icon.ico dist/Gitso.app/Contents/Resources/
cp icon.png dist/Gitso.app/Contents/Resources/
cp __init__.py dist/Gitso.app/Contents/Resources/
cp ArgsParser.py dist/Gitso.app/Contents/Resources/
cp Processes.py dist/Gitso.app/Contents/Resources/
cp ConnectionWindow.py dist/Gitso.app/Contents/Resources/
cp AboutWindow.py dist/Gitso.app/Contents/Resources/
cp GitsoThread.py dist/Gitso.app/Contents/Resources/
cp arch/osx/libjpeg-copyright.txt dist/Gitso.app/Contents/Frameworks/
cp arch/osx/osxnvc_echoware-copyright.txt dist/Gitso.app/Contents/Resources/OSXvnc/
cp arch/osx/cotvnc-copyright.txt dist/Gitso.app/Contents/Resources/cotvnc.app/contents/Resources
cp arch/osx/osxvnc-copyright.txt dist/Gitso.app/Contents/Resources/OSXvnc/
mv cotvnc.app $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.ico $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.png $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp __init__.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ArgsParser.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp Processes.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ConnectionWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp AboutWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp GitsoThread.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp arch/osx/libjpeg-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Frameworks/
cp arch/osx/osxnvc_echoware-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
cp arch/osx/cotvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/cotvnc.app/contents/Resources
cp arch/osx/osxvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
echo -e " [done]\n"
echo -e "Creating $DMG_OSX_106"
rm -f $DMG_OSX_106
mkdir dist/Gitso
cp arch/osx/dmg_DS_Store dist/Gitso/.DS_Store
ln -s /Applications/ dist/Gitso/Applications
mkdir $OSX_BUILD_DIR/Gitso
cp arch/osx/dmg_DS_Store $OSX_BUILD_DIR/Gitso/.DS_Store
ln -s /Applications/ $OSX_BUILD_DIR/Gitso/Applications
mv "dist/Gitso.app" "dist/Gitso/"
cp -r arch/osx/Readme.rtfd dist/Gitso/Readme.rtfd
mv "$OSX_BUILD_DIR/Gitso.app" "$OSX_BUILD_DIR/Gitso/"
cp -r arch/osx/Readme.rtfd $OSX_BUILD_DIR/Gitso/Readme.rtfd
echo -e "..."
hdiutil create -srcfolder dist/Gitso/ $DMG_OSX_106
hdiutil create -srcfolder $OSX_BUILD_DIR/Gitso/ $DMG_OSX_106
echo -e "... [done]\n"
}
#
# Create the .app folder for Leopard, it uses a different version of pythong
# And because py2app needs to know there, we just use different config files.
#
function LeopardDMG {
echo -e "Creating Gitso.app "
rm -f setup.py
rm -rf dist
rm -rf $OSX_BUILD_DIR
echo -e ".."
python arch/osx/setup.py py2app
echo -e ".."
cp arch/osx/Info_OSX-10.5.plist dist/Gitso.app/Contents/
cp arch/osx/Info_OSX-10.5.plist $OSX_BUILD_DIR/Gitso.app/Contents/
cp COPYING dist/Gitso.app/Contents/Resources/
cp PythonApplet.icns dist/Gitso.app/Contents/Resources/
cp COPYING $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp PythonApplet.icns $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/OSXvnc.tar.gz
mv OSXvnc dist/Gitso.app/Contents/Resources/
mv OSXvnc $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/cotvnc.app.tar.gz
mv cotvnc.app dist/Gitso.app/Contents/Resources/
cp icon.ico dist/Gitso.app/Contents/Resources/
cp icon.png dist/Gitso.app/Contents/Resources/
cp __init__.py dist/Gitso.app/Contents/Resources/
cp ArgsParser.py dist/Gitso.app/Contents/Resources/
cp Processes.py dist/Gitso.app/Contents/Resources/
cp ConnectionWindow.py dist/Gitso.app/Contents/Resources/
cp AboutWindow.py dist/Gitso.app/Contents/Resources/
cp GitsoThread.py dist/Gitso.app/Contents/Resources/
cp arch/osx/libjpeg-copyright.txt dist/Gitso.app/Contents/Frameworks/
cp arch/osx/osxnvc_echoware-copyright.txt dist/Gitso.app/Contents/Resources/OSXvnc/
cp arch/osx/cotvnc-copyright.txt dist/Gitso.app/Contents/Resources/cotvnc.app/contents/Resources
cp arch/osx/osxvnc-copyright.txt dist/Gitso.app/Contents/Resources/OSXvnc/
mv cotvnc.app $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.ico $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.png $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp __init__.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ArgsParser.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp Processes.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ConnectionWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp AboutWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp GitsoThread.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp arch/osx/libjpeg-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Frameworks/
cp arch/osx/osxnvc_echoware-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
cp arch/osx/cotvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/cotvnc.app/contents/Resources
cp arch/osx/osxvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
echo -e " [done]\n"
echo -e "Creating $DMG_OSX_105"
rm -f $DMG_OSX_105
mkdir dist/Gitso
cp arch/osx/dmg_DS_Store dist/Gitso/.DS_Store
ln -s /Applications/ dist/Gitso/Applications
mkdir $OSX_BUILD_DIR/Gitso
cp arch/osx/dmg_DS_Store $OSX_BUILD_DIR/Gitso/.DS_Store
ln -s /Applications/ $OSX_BUILD_DIR/Gitso/Applications
mv "dist/Gitso.app" "dist/Gitso/"
cp -r arch/osx/Readme.rtfd dist/Gitso/Readme.rtfd
mv "$OSX_BUILD_DIR/Gitso.app" "$OSX_BUILD_DIR/Gitso/"
cp -r arch/osx/Readme.rtfd $OSX_BUILD_DIR/Gitso/Readme.rtfd
echo -e "..."
hdiutil create -srcfolder dist/Gitso/ $DMG_OSX_105
hdiutil create -srcfolder $OSX_BUILD_DIR/Gitso/ $DMG_OSX_105
echo -e "... [done]\n"
}
CLEAN="yes"
RPMNAME="opensuse"
echo -n "Starting makegitso:"
if [ "$1" = "" ]; then
echo -n ".."
elif test "$1" = "--no-clean"; then
CLEAN="no"
elif test "$1" = "--fedora"; then
RPMNAME="fedora"
RPMOUT="gitso_0.6-1_fedora.i386.rpm"
elif test "$1" = "--opensuse"; then
RPMNAME="opensuse"
else
echo -e "Usage makegitso.sh: [ --no-clean | --fedora | --opensuse | --help ]"
echo -e "\tOptions:"
#
# Displays the help menu
#
function helpMenu {
echo -e "Usage makegitso.sh: [ BUILD OPTIONS ] [ OPTIONS ]"
echo -e "\tBUILD OPTIONS"
echo -e "\t--fedora\tMake package for Fedora. (only avaible on Fedora)"
echo -e "\t--opensuse\tMake package for OpenSUSE. (only avaible on OpenSUSE)"
echo -e "\t--source\tMake the source package. (All UNIX/Linux systems)\n"
echo -e "\tOPTIONS:"
echo -e "\t--no-clean\tDo not remove the build directory."
echo -e "\t--fedora\tMake Build for Fedora."
echo -e "\t--opensuse\tMake Build for OpenSUSE."
echo -e "\t--help \tThese options."
exit 0
fi
if [ "$2" = "" ]; then
echo ".."
elif test "$2" = "--no-clean"; then
CLEAN="no"
echo ".."
elif test "$2" = "--fedora"; then
RPMNAME="fedora"
RPMOUT="gitso_0.6-1_fedora.i386.rpm"
echo ".."
elif test "$2" = "--opensuse"; then
RPMNAME="opensuse"
echo ".."
else
echo -e "Usage makegitso.sh: [ --no-clean | --fedora | --opensuse | --help ]"
echo -e "\tOptions:"
echo -e "\t--no-clean\tDo not remove the build directory."
echo -e "\t--help \tThese options."
exit 0
}
##
# Initialize values
############################
DMG_OSX_106="Gitso_0.6_SnowLeopard.dmg"
DMG_OSX_105="Gitso_0.6_Leopard.dmg"
DEB="gitso_0.6_all.deb"
TARGZ="gitso_0.6_all.tar.gz"
SRC="gitso_0.6_src.tar.bz2"
RPM="gitso-0.6-1.i586.rpm"
RPMOUT="gitso_0.6-1_opensuse.i586.rpm"
OSX_BUILD_DIR=`pwd`"/dist"
RPM_BUILD_DIR=`pwd`"/build"
DEB_BUILD_DIR="gitso"
DEB_TARGZ_PATH="Gitso"
CLEAN="yes"
RPMNAME="opensuse"
USESRC="no"
##
# Get Comman line arguments
############################
if test "$1" = ""; then
helpMenu
fi
if [ "`uname -a | grep Darwin`" != "" ]; then
for param in "$@"
do
if test "${param}" = "--no-clean"; then
CLEAN="no"
elif test "${param}" = "--fedora"; then
RPMNAME="fedora"
RPMOUT="gitso_0.6-1_fedora.i386.rpm"
elif test "${param}" = "--opensuse"; then
RPMNAME="opensuse"
elif test "${param}" = "--opensuse"; then
RPMNAME="opensuse"
elif test "${param}" = "--source"; then
USESRC="yes"
else
helpMenu
fi
done
##
# Create packages!
########################
if [ "$USESRC" = "yes" ]; then
# Creating the source
echo -n "Creating gitso $SRC...."
mksrc
echo -e " [done]\n"
elif [ "`uname -a | grep Darwin`" != "" ]; then
#We're on OS X
if test `which py2applet`; then
# To Make cotvnc
# cvs -z3 -d:pserver:anonymous@cotvnc.cvs.sourceforge.net:/cvsroot/cotvnc co -P cotvnc
fi
elif test "`uname -a 2>&1 | grep Linux | grep -v which`"; then
if test "`which dpkg 2>&1 | grep -v which`"; then
BUILDPATH="gitso"
TARGZPATH="Gitso"
echo -n "Creating $DEB"
rm -rf $BUILDPATH
# Deb version of Gitso.
mkdir -p $BUILDPATH/DEBIAN
mkdir -p $BUILDPATH/usr/bin
mkdir -p $BUILDPATH/usr/share/applications
mkdir -p $BUILDPATH/usr/share/doc/$BUILDPATH
mkdir -p $BUILDPATH/usr/share/$BUILDPATH
mkdir -p $BUILDPATH/usr/share/man/man1
echo -n ".."
cp arch/linux/control $BUILDPATH/DEBIAN
cp arch/linux/gitso $BUILDPATH/usr/bin/
chmod 755 $BUILDPATH/usr/bin/gitso
cp Gitso.py $BUILDPATH/usr/share/$BUILDPATH/
cp ConnectionWindow.py $BUILDPATH/usr/share/$BUILDPATH/
cp AboutWindow.py $BUILDPATH/usr/share/$BUILDPATH/
cp GitsoThread.py $BUILDPATH/usr/share/$BUILDPATH/
cp Processes.py $BUILDPATH/usr/share/$BUILDPATH/
cp ArgsParser.py $BUILDPATH/usr/share/$BUILDPATH/
cp __init__.py $BUILDPATH/usr/share/$BUILDPATH/
cp hosts.txt $BUILDPATH/usr/share/$BUILDPATH/
cp icon.ico $BUILDPATH/usr/share/$BUILDPATH/
cp icon.png $BUILDPATH/usr/share/$BUILDPATH/
echo -n ".."
cp arch/linux/gitso.desktop $BUILDPATH/usr/share/applications/
cp arch/linux/README.txt $BUILDPATH/usr/share/doc/$BUILDPATH/README
cp COPYING $BUILDPATH/usr/share/doc/$BUILDPATH/
gzip -cf arch/linux/changelog > $BUILDPATH/usr/share/doc/$BUILDPATH/changelog.gz
gzip -cf arch/linux/gitso.1 > $BUILDPATH/usr/share/man/man1/gitso.1.gz
echo -n ".."
dpkg -b $BUILDPATH/ $DEB 2>&1 > /dev/null
echo -e " [done]"
# Standalone version of Gitso.
echo -n "Creating $TARGZ"
rm -rf $TARGZPATH
cp -r $BUILDPATH $TARGZPATH
rm -rf $TARGZPATH/DEBIAN
echo -n ".."
cp arch/linux/README-stand-alone.txt $TARGZPATH/README
cp arch/linux/run-gitso.sh $TARGZPATH/
mv $TARGZPATH/usr/bin $TARGZPATH/bin
mv $TARGZPATH/usr/share $TARGZPATH/share
rm -rf $TARGZPATH/usr/
echo -n "."
tar -cvzf $TARGZ $TARGZPATH 2>&1 > /dev/null
#We're on Linux
echo -e " [done]\n"
echo -n "Creating gitso $SRC...."
mksrc
echo -e " [done]\n"
if [ "$CLEAN" = "yes" ]; then
rm -rf $BUILDPATH
rm -rf $TARGZPATH
find . -name "*.pyc" -exec rm {} ';'
fi
if test "`which dpkg 2>&1 | grep -v which`"; then
# Deb version of Gitso.
echo -n "Creating $DEB"
rm -rf $DEB_BUILD_DIR
mkdir -p $DEB_BUILD_DIR/DEBIAN
mkdir -p $DEB_BUILD_DIR/usr/bin
mkdir -p $DEB_BUILD_DIR/usr/share/applications
mkdir -p $DEB_BUILD_DIR/usr/share/doc/$DEB_BUILD_DIR
mkdir -p $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR
mkdir -p $DEB_BUILD_DIR/usr/share/man/man1
echo -n ".."
cp arch/linux/control $DEB_BUILD_DIR/DEBIAN
cp arch/linux/gitso $DEB_BUILD_DIR/usr/bin/
chmod 755 $DEB_BUILD_DIR/usr/bin/gitso
cp Gitso.py $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp ConnectionWindow.py $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp AboutWindow.py $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp GitsoThread.py $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp Processes.py $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp ArgsParser.py $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp __init__.py $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp hosts.txt $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp icon.ico $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
cp icon.png $DEB_BUILD_DIR/usr/share/$DEB_BUILD_DIR/
echo -n ".."
cp arch/linux/gitso.desktop $DEB_BUILD_DIR/usr/share/applications/
cp arch/linux/README.txt $DEB_BUILD_DIR/usr/share/doc/$DEB_BUILD_DIR/README
cp COPYING $DEB_BUILD_DIR/usr/share/doc/$DEB_BUILD_DIR/
gzip -cf arch/linux/changelog > $DEB_BUILD_DIR/usr/share/doc/$DEB_BUILD_DIR/changelog.gz
gzip -cf arch/linux/gitso.1 > $DEB_BUILD_DIR/usr/share/man/man1/gitso.1.gz
echo -n ".."
dpkg -b $DEB_BUILD_DIR/ $DEB 2>&1 > /dev/null
echo -e " [done]"
# Standalone version of Gitso.
echo -n "Creating $TARGZ"
rm -rf $DEB_TARGZ_PATH
cp -r $DEB_BUILD_DIR $DEB_TARGZ_PATH
rm -rf $DEB_TARGZ_PATH/DEBIAN
echo -n ".."
cp arch/linux/README-stand-alone.txt $DEB_TARGZ_PATH/README
cp arch/linux/run-gitso.sh $DEB_TARGZ_PATH/
mv $DEB_TARGZ_PATH/usr/bin $DEB_TARGZ_PATH/bin
mv $DEB_TARGZ_PATH/usr/share $DEB_TARGZ_PATH/share
rm -rf $DEB_TARGZ_PATH/usr/
echo -n "."
tar -cvzf $TARGZ $DEB_TARGZ_PATH 2>&1 > /dev/null
echo -e " [done]\n"
elif test "`which rpm 2>&1 | grep -v which`"; then
# RPM version of Gitso
if [ "$RPMNAME" = "fedora" ]; then
SPEC="gitso_rpm_fedora.spec"
# Before installing the .rpm
else
SPEC="gitso_rpm.spec"
fi
# RPM version of Gitso
echo "Creating $RPM"
BUILD_DIR=`pwd`
export BUILD_DIR="$BUILD_DIR/build"
TMP="$BUILD_DIR/rpm/tmp"
BUILD_ROOT="$BUILD_DIR/rpm/tmp/gitso-root"
mkdir -p $BUILD_DIR/rpm/{BUILD,RPMS/$ARCH,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
mkdir -p $BUILD_ROOT
echo "Creating $RPM"
export RPM_BUILD_DIR=$RPM_BUILD_DIR
TMP="$RPM_BUILD_DIR/rpm/tmp"
BUILD_ROOT="$RPM_BUILD_DIR/rpm/tmp/gitso-root"
# We need this because the rpmbuild below needs to the source ball.
# Also realize that mksrc is going to clean-up, so if you creat dist files before this line
# They will be deleted.
mksrc
mkdir -p $RPM_BUILD_DIR/rpm/{BUILD,RPMS/$ARCH,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
mkdir -p $BUILD_ROOT
cp $SRC $BUILD_DIR/rpm/SOURCES/$SRC
cp $SRC $RPM_BUILD_DIR/rpm/SOURCES/$SRC
cp arch/linux/$SPEC $TMP
perl -e 's/%\(echo \$HOME\)/$ENV{'BUILD_DIR'}/g;' -pi $TMP/$SPEC
perl -e 's/%\(echo \$HOME\)/$ENV{'RPM_BUILD_DIR'}/g;' -pi $TMP/$SPEC
rpmbuild -ba $TMP/$SPEC
find $BUILD_DIR/rpm/RPMS -name "*.rpm" -exec cp {} $RPMOUT ';'
find $RPM_BUILD_DIR/rpm/RPMS -name "*.rpm" -exec cp {} $RPMOUT ';'
echo -e " [done]\n"
if [ "$CLEAN" = "yes" ]; then
rm -rf $BUILD_DIR
find . -name "*.pyc" -exec rm {} ';'
fi
fi
fi
# Clean up
if [ "$CLEAN" = "yes" ]; then
echo -e "Cleaning up...."
rm -rf $RPM_BUILD_DIR
rm -rf $DEB_BUILD_DIR
rm -rf $DEB_TARGZ_PATH
find . -name "*.pyc" -exec rm {} ';'
echo -e " [done]\n"
fi

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.11009s using 13 queries.