1#!/bin/sh
2
3if test ! -d cursors;
4then mkdir cursors
5else
6rm -rf cursors
7mkdir cursors
8fi
9
10
11
12########### Build cursors
13
14xcursorgen AppStarting.conf             cursors/AppStarting
15xcursorgen Arrow.conf			cursors/Arrow
16xcursorgen ArrowRight.conf		cursors/ArrowRight
17xcursorgen AngleNW.conf			cursors/AngleNW
18xcursorgen AngleNE.conf			cursors/AngleNE
19xcursorgen AngleNE.conf			cursors/AngleSW
20xcursorgen AngleNW.conf			cursors/AngleSE
21xcursorgen Copy.conf			cursors/Copy
22xcursorgen Cross.conf			cursors/Cross
23xcursorgen Crosshair.conf		cursors/Crosshair
24xcursorgen Circle.conf			cursors/Circle
25xcursorgen DND-ask.conf			cursors/DND-ask
26xcursorgen DND-copy.conf		cursors/DND-copy
27xcursorgen DND-link.conf		cursors/DND-link
28xcursorgen Hand.conf			cursors/Hand
29
30xcursorgen Handgrab.conf		cursors/Handgrab
31xcursorgen Handsqueezed.conf		cursors/Handsqueezed
32
33xcursorgen Handwriting.conf		cursors/Handwriting
34xcursorgen Help.conf			cursors/Help
35xcursorgen IBeam.conf			cursors/IBeam
36xcursorgen Link.conf			cursors/Link
37xcursorgen Move.conf			cursors/Move
38xcursorgen NO.conf			cursors/NO
39xcursorgen SizeAll.conf			cursors/SizeAll
40xcursorgen AngleNE.conf			cursors/SizeNESW
41xcursorgen BaseN.conf			cursors/SizeNS
42xcursorgen AngleNW.conf			cursors/SizeNWSE
43xcursorgen SizeWE.conf			cursors/SizeWE
44xcursorgen UpArrow.conf			cursors/UpArrow
45xcursorgen DownArrow.conf		cursors/DownArrow
46xcursorgen LeftArrow.conf		cursors/LeftArrow
47xcursorgen RightArrow.conf		cursors/RightArrow
48xcursorgen BaseN.conf			cursors/BaseN
49xcursorgen BaseN.conf			cursors/BaseS
50xcursorgen HDoubleArrow.conf		cursors/HDoubleArrow
51xcursorgen VDoubleArrow.conf		cursors/VDoubleArrow
52xcursorgen Wait.conf			cursors/Wait
53xcursorgen X.conf			cursors/X
54
55xcursorgen ZoomIn.conf			cursors/ZoomIn
56xcursorgen ZoomOut.conf			cursors/ZoomOut
57
58
59cd cursors
60
61
62
63########### Create copies and symlinks
64
65#---------- AngleNW
66cp AngleNW				ul_angle
67cp AngleNW				dnd-none
68cp AngleNW				dnd-move
69rm -f AngleNW
70
71#---------- AngleNE
72cp AngleNE				ur_angle
73rm -f AngleNE
74
75#---------- AngleSW
76cp AngleSW				ll_angle
77rm -f AngleSW
78
79#---------- AngleSE
80cp AngleSE				lr_angle
81rm -f AngleSE
82
83#---------- AppStarting
84cp AppStarting				left_ptr_watch
85cp -s left_ptr_watch			08e8e1c95fe2fc01f976f1e063a24ccd
86cp -s left_ptr_watch			3ecb610c1bf2410f44200f48c40d3599
87rm -f AppStarting
88
89#---------- Arrow
90cp Arrow				arrow
91cp Arrow				draft_large
92cp Arrow				draft_small
93cp Arrow				left_ptr
94cp Arrow				right_ptr
95cp Arrow				top_left_arrow
96rm -f Arrow
97
98#---------- ArrowRight
99cp ArrowRight				right_ptr
100rm -f ArrowRight
101
102#---------- BaseN
103cp BaseN				base_arrow_up
104cp BaseN				based_arrow_up
105rm -f BaseN
106
107#---------- BaseS
108cp BaseS				base_arrow_down
109cp BaseS				based_arrow_down
110rm -f BaseS
111
112#---------- Cirlce
113cp Circle 				circle
114rm -f Circle
115
116#---------- Copy
117cp Copy					copy
118cp -s copy				1081e37283d90000800003c07f3ef6bf
119cp -s copy				6407b0e94181790501fd1e167b474872
120cp -s copy				08ffe1cb5fe6fc01f906f1c063814ccf
121rm -f Copy
122
123#---------- Cross
124cp Cross				cross
125cp Cross				cross_reverse
126cp Cross				tcross
127rm -f Cross
128
129#---------- Crosshair
130cp Crosshair				crosshair
131rm -f Crosshair
132
133#---------- DND-ask
134cp DND-ask				dnd-ask
135rm -f DND-ask
136
137#---------- DND-copy
138cp DND-copy				dnd-copy
139rm -f DND-copy
140
141#---------- DND-link
142cp DND-link				dnd-link
143rm -f DND-link
144
145#---------- Handpointer
146cp Hand					hand
147cp Hand					hand1
148cp Hand					hand2
149cp -s hand2				e29285e634086352946a0e7090d73106
150rm -f Hand
151
152#---------- Handgrab
153cp Handgrab				HandGrab
154cp -s HandGrab				9d800788f1b08800ae810202380a0822
155cp -s HandGrab				5aca4d189052212118709018842178c0
156rm -f Handgrab
157
158#---------- Handsqueezed
159cp Handsqueezed				HandSqueezed
160cp -s HandSqueezed			208530c400c041818281048008011002
161rm -f Handsqueezed
162
163
164#---------- Handwriting
165cp Handwriting				pencil
166rm -f Handwriting
167
168#---------- Help
169cp Help					question_arrow
170cp -s question_arrow			d9ce0ab605698f320427677b458ad60b
171cp -s question_arrow			5c6cd98b3f3ebcb1f9c7f1c204630408
172rm -f Help
173
174#---------- IBeam
175cp IBeam				xterm
176cp IBeam				ibeam
177rm -f IBeam
178
179#---------- Link
180cp Link					link
181cp -s link				3085a0e285430894940527032f8b26df
182cp -s link				640fb0e74195791501fd1ed57b41487f
183cp -s link				0876e1c15ff2fc01f906f1c363074c0f
184rm -f Link
185
186#---------- NO
187cp NO 					crossed_circle
188cp NO					dnd-none
189cp -s crossed_circle			03b6e0fcb3499374a867c041f52298f0
190rm -f NO
191
192#---------- Move
193cp Move					move
194cp Move					plus
195cp -s move				4498f0e0c1937ffe01fd06f973665830
196cp -s move				9081237383d90e509aa00f00170e968f
197rm -f Move
198
199#---------- SizeAll
200cp SizeAll				fleur
201rm -f SizeAll
202
203#---------- SizeNESW
204cp SizeNESW				bottom_left_corner
205cp SizeNESW				fd_double_arrow
206cp SizeNESW				top_right_corner
207cp -s fd_double_arrow			fcf1c3c7cd4491d801f1e1c78f100000
208rm -f SizeNESW
209
210#---------- SizeNS
211cp SizeNS				bottom_side
212cp SizeNS				double_arrow
213cp SizeNS				top_side
214cp -s double_arrow			00008160000006810000408080010102
215rm -f SizeNS
216
217#---------- SizeNWSE
218cp SizeNWSE				bd_double_arrow
219cp SizeNWSE				bottom_right_corner
220cp SizeNWSE				top_left_corner
221cp -s bd_double_arrow			c7088f0f3e6c8088236ef8e1e3e70000
222rm -f SizeNWSE
223
224#---------- SizeWE
225cp SizeWE				left_side
226cp SizeWE				right_side
227cp -s right_side			028006030e0e7ebffc7f7070c0600140
228rm -f SizeWE
229
230#---------- UpArrow
231cp UpArrow				center_ptr
232cp UpArrow				sb_up_arrow
233rm -f UpArrow
234
235#---------- DownArrow
236cp DownArrow				sb_down_arrow
237rm -f DownArrow
238
239#---------- LeftArrow
240cp LeftArrow				sb_left_arrow
241rm -f LeftArrow
242
243#---------- RightArrow
244cp RightArrow				sb_right_arrow
245rm -f RightArrow
246
247#---------- HDoubleArrow
248cp HDoubleArrow				h_double_arrow
249cp HDoubleArrow				sb_h_double_arrow
250cp -s sb_h_double_arrow			14fef782d02440884392942c11205230
251
252rm -f HdoubleArrow
253
254#---------- VDoubleArrow
255cp VDoubleArrow				v_double_arrow
256cp VDoubleArrow				sb_v_double_arrow
257cp -s sb_v_double_arrow			2870a09082c103050810ffdffffe0204
258
259rm -f VdoubleArrow
260
261#---------- Wait
262cp Wait					watch
263rm -f Wait
264
265#---------- X
266cp X 					X_cursor
267cp X                                    X-cursor
268rm -f X
269
270#---------- ZoomIn
271cp ZoomIn				zoomIn
272cp -s zoomIn 				f41c0e382c94c0958e07017e42b00462
273rm -f ZoomIn
274#---------- ZoomOut
275cp ZoomOut				zoomOut
276cp -s zoomOut 				f41c0e382c97c0938e07017e42800402
277rm -f ZoomOut
278
279
280### Move the cursors to the theme folder
281cd ..
282
283if test ! -d ../cursors;
284then mv cursors ../
285else
286rm -rf ../cursors
287mv cursors ../
288fi
289
290
291########### Done!
292echo "Done!"
293