-
Notifications
You must be signed in to change notification settings - Fork 53
/
install.sh
executable file
·621 lines (532 loc) · 19.2 KB
/
install.sh
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
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
279
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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
#!/bin/bash
updaterepo=1
debug_build=0
buildwindows=1
buildsteawin=0
buildsteamlin=0
update_steam=0
steam_folder=""
buildlinux=1
buildandroid=1
projectdir=""
buildmac=1
sf_password=""
sf_folder=""
waste_folder=""
have_sfpass=0
have_sffolder=0
have_wastefolder=0
create_update=1
download_lastres=0
send_to_remote=1
clean=0
clone_repo=0
show_help=0
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtblu='\e[0;34m' # Blue
txtrst='\e[0m' # Text Reset
while [ $# -gt 0 ]; do
case "$1" in
--pdir=*)
project="${1#*=}"
;;
--sfpass=*)
sf_password="${1#*=}"
;;
--sffolder=*)
sf_folder="${1#*=}"
;;
--wastedir=*)
directory="${1#*=}"
;;
--nogit)
updaterepo=0
;;
--clean)
clean=1
;;
--debugb)
debug_build=1
;;
--noandroid)
buildandroid=0
;;
--nowindows)
buildwindows=0
;;
--nolinux)
buildlinux=0
;;
--nomac)
buildmac=0
;;
--wgetlast)
download_lastres=1
;;
--noremote)
send_to_remote=0
;;
--noupdate)
create_update=0
;;
--clone)
clone_repo=1
;;
--help)
show_help=1
;;
--steamwin)
buildsteamwin=1
;;
--steamlin)
buildsteamlin=1
;;
--steamup)
update_steam=1
;;
*)
printf "***************************\n"
printf "* Error: Invalid argument.*\n"
printf "***************************\n"
exit 1
esac
shift
done
if [ $show_help == 1 ]
then
echo -e "${txtgrn}--pdir=/path/to/dir: ${txtrst}set path directory as project folder ${txtrst}"
echo -e "${txtgrn}--sfpass=password: ${txtrst}set password for remote folder ${txtrst}"
echo -e "${txtgrn}--sffolder=url: ${txtrst}set path to remote folder ${txtrst}"
echo -e "${txtgrn}--wastedir=/path/to/dir: ${txtrst}set path to directory where archive will be move ${txtrst}"
echo -e "${txtgrn}--nogit: ${txtrst}no check last updates ${txtrst}"
echo -e "${txtgrn}--clean: ${txtrst}clean build ${txtrst}"
echo -e "${txtgrn}--debugb: ${txtrst}create debug build ${txtrst}"
echo -e "${txtgrn}--noandroid: ${txtrst}skip android build ${txtrst}"
echo -e "${txtgrn}--nowindows: ${txtrst}skip windows build ${txtrst}"
echo -e "${txtgrn}--nolinux: ${txtrst}skip linux build ${txtrst}"
echo -e "${txtgrn}--nomac: ${txtrst}skip mac build ${txtrst}"
echo -e "${txtgrn}--steamwin: ${txtrst}build windows build with Steam API ${txtrst}"
echo -e "${txtgrn}--steamlin: ${txtrst}build linux build with Steam API${txtrst}"
echo -e "${txtgrn}--steamup: ${txtrst}update Steam build with Steam console ${txtrst}"
echo -e "${txtgrn}--wgetlast: ${txtrst}get last resources from server ${txtrst}"
echo -e "${txtgrn}--noupdate: ${txtrst}skip create update info ${txtrst}"
echo -e "${txtgrn}--noremote: ${txtrst}skip send archives to remote server ${txtrst}"
echo -e "${txtgrn}--clone: ${txtrst}clone repository from bitbucket ${txtrst}"
echo -e "${txtgrn}--help: ${txtrst}show this help${txtrst}"
exit
fi
if [ -x /usr/bin/git ]; then
echo -e "${txtgrn}Check git: ${txtblue}found${txtrst}"
else
echo -e "${txtred}Git not found. It need for download repository${txtrst}"
read -r -p "Do you want to install git? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]; then
echo -e "${txtgrn}Installing ${txtblu}git ${txtrst}"
sudo apt-get install git
fi
fi
if [ -x /usr/bin/cmake ]; then
echo -e "${txtgrn}Check cmake: ${txtblue}found${txtrst}"
else
echo -e "${txtred}Cmake not found. It need for build game${txtrst}"
read -r -p "Do you want to install cmake? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]; then
echo -e "${txtgrn}Installing ${txtblu}cmake ${txtrst}"
sudo apt-get install cmake
fi
fi
if [ $update_steam == 1 ]
then
steam_folder=`echo $CAESARIA_STEAM_FOLDER`
fi
if [ -x '/usr/bin/wget' ]; then
echo -e "${txtgrn}Check wget: ${txtblue}found${txtrst}"
else
echo -e "${txtred}wget not found. It need for download lastet packages with resources${txtrst}"
read -r -p "Do you want to install wget? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]; then
echo -e "${txtgrn}Installing ${txtblu}cmake ${txtrst}"
sudo apt-get install wget
fi
fi
if [ -x '/usr/bin/g++-4.8' ]; then
echo -e "${txtgrn}Check g++: ${txtblue}found${txtrst}"
else
echo -e "${txtred}G++ 4.8 compiler not found. It need for build game${txtrst}"
echo -e "${txtred}Will be installed packages: ${txtblud}g++-4.8 build-essential libasound2-dev sshpass${txtrst}"
if [ $buildwindows == 1 ]
then
echo -e "${txtred}Will be add foreign repositories ppa:ubuntu-toolchain-r/test and ppa:tobydox/mingw-x-precise${txtrst}"
echo -e "${txtred}Will be installed packages for windows build: ${txtblud}mingw32-x-binutils mingw32-x-gcc mingw32-x-runtime${txtrst}"
fi
read -r -p "Do you want to install developer tools? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]
then
echo -e "${txtgrn}Installing ${txtblu}g++-4.8 ${txtrst}"
sudo apt-get install g++-4.8
echo -e "${txtgrn}Installing ${txtblu}build-essential ${txtrst}"
sudo apt-get install build-essential
echo -e "${txtgrn}Installing ${txtblu}libasound2-dev ${txtrst}"
sudo apt-get install libasound2-dev
echo -e "${txtgrn}Installing ${txtblu}sshpass ${txtrst}"
sudo apt-get install sshpass
if [ $buildwindows == 1 ]
then
echo -e "${txtgrn}Add repository ppa:ubuntu-toolchain-r/test ${txtrst}"
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
echo -e "${txtgrn}Add repository ppa:tobydox/mingw-x-precise ${txtrst}"
sudo add-apt-repository --yes ppa:tobydox/mingw-x-precise
echo -e "${txtgrn}Updating system ${txtrst}"
sudo apt-get update
echo -e "${txtgrn}Installing ${txtblu}mingw32-x-binutils ${txtrst}"
sudo apt-get install -y mingw32-x-binutils
echo -e "${txtgrn}Installing ${txtblu}mingw32-x-gcc ${txtrst}"
sudo apt-get install mingw32-x-gcc
echo -e "${txtgrn}Installing ${txtblu}mingw32-x-runtime ${txtrst}"
sudo apt-get install mingw32-x-runtime
fi
fi
fi
if [ -x '/usr/bin/zip' ]; then
echo -e "${txtgrn}Check zip: ${txtblue}found${txtrst}"
else
echo -e "${txtred}Zip not found. It need for pack archive${txtrst}"
read -r -p "Do you want to install p7zip-full? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]; then
echo -e "${txtgrn}Installing ${txtblu}cmake ${txtrst}"
sudo apt-get install p7zip-full
fi
fi
if [ $clone_repo == 1 ]
then
mydir=`pwd`
echo -e "${txtgrn}Clone repository to ${mydir} ${txtrst}"
git clone https://bitbucket.org/dalerank/caesaria tmp
mv tmp/* ./
rm -rf tmp
fi
if [ $buildlinux == 0 ] && [ $buildandroid == 0 ] && [ $buildwindows == 0 ]
then
echo -e "${txtred}Nothing to build ${txtrst}"
echo -e "${txtred}Try to set ${txtblue}--android[windows,linux]=1${txtrst}"
exit
fi
if [ -z "$project" ]
then
echo -e "${txtred}Project dir is unset. Use current dir as project folder${txtrst}"
project="."
fi
if [ $clean == 1 ]
then
cd $project
rm -rf build
exit
fi
if [ ! -f "${project}/CMakeLists.txt" ]
then
ndir=`pwd`
echo -e "${txtred}Not found CMakeList.txt. Is ${txtblu}${ndir}/${project}/${txtred} project folder?${txtrst}"
read -r -p "Do you want to download last revision sources? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]
then
echo -e "${txtgrn}Clone repository to ${mydir} ${txtrst}"
git clone https://bitbucket.org/dalerank/caesaria tmp
mv tmp/* ./
rm -rf tmp
else
echo -e "${txtred}Try to use other directory or start ${txtgrn}./install.sh --clone${txtrst}"
exit
fi
fi
if [ -z "$sf_password" ]
then
echo -e "${txtred}"
echo "SF password not set. Try to use system value"
sf_password=`echo $CAESARIA_SF_PASSWORD`
echo -e "${txtrst}"
fi
if [ -z "$sf_folder" ]
then
echo -e "${txtred}SF folder not set. Try to use system value${txtrst}"
sf_folder=`echo $CAESARIA_SF_FOLDER`
fi
if [ -z "$waste_directory" ]
then
echo -e "${txtred}Waste folder not set. Try to use system value${txtrst}"
waste_folder=`echo $CAESARIA_WASTE_FOLDER`
fi
if [ -z "$sf_folder" ]
then
echo -e "${txtred}"
echo "SF folder not set. Package will be not upload to sf."
echo "You need to use --sffolder=name@site.com:/path/to/folder/ or set CAESARIA_SF_FOLDER in env"
echo "like export CAESARIA_SF_FOLDER=name@site.com:/path/to/folder/"
echo -e "${txtrst}"
have_sffolder=0
else
have_sffolder=1
fi
if [ -z "$sf_password" ]
then
echo -e "${txtred}"
echo "SF password not set. Package will be not upload to sf."
echo "You need to use --sfpass=password or set CAESARIA_SF_PASSWORD in env"
echo "like export CAESARIA_SF_PASSWORD=mysfpass"
echo -e "${txtrst}"
have_sfpass=0
else
have_sfpass=1
fi
if [ -z "$waste_folder" ]
then
echo -e "${txtred}"
echo "Waste folder not set. Package will be not upload to sf."
echo "You need to use --wastedir=/path/to/dir or set CAESARIA_WASTE_FOLDER in env"
echo "like export CAESARIA_WASTE_FOLDER=/path/to/dir"
echo -e "${txtrst}"
have_wastefolder=0
else
have_wastefolder=1
fi
echo -e "${txtgrn}project directory: ${txtblu}$project"
echo -e "${txtgrn}sf password: ${txtblu}*********"
echo -e "${txtgrn}sf folder: ${txtblu}$sf_folder"
echo -e "${txtgrn}have pass for sf: ${txtblu}$have_sfpass"
if [ $buildwindows == 1 ]
then
echo -e "${txtgrn}Build game for windows: ${txtblu}yes"
else
echo -e "${txtgrn}Build game for windows: ${txtred}no"
fi
if [ $buildsteamwin == 1 ]
then
echo -e "${txtgrn}Build game for windows with Steam: ${txtblu}yes"
else
echo -e "${txtgrn}Build game for windows with Steam: ${txtred}no"
fi
if [ $buildlinux == 1 ]
then
echo -e "${txtgrn}Build game for linux: ${txtblu}yes"
else
echo -e "${txtgrn}Build game for linux: ${txtred}no"
fi
if [ $buildsteamlin == 1 ]
then
echo -e "${txtgrn}Build game for linux with Steam: ${txtblu}yes"
else
echo -e "${txtgrn}Build game for linux with Steam: ${txtred}no"
fi
if [ $buildandroid == 1 ]
then
echo -e "${txtgrn}Build game for android: ${txtblu}yes"
else
echo -e "${txtgrn}Build game for android: ${txtred}no"
fi
if [ $buildmac == 1 ]
then
echo -e "${txtgrn}Build game for mac: ${txtblu}yes"
else
echo -e "${txtgrn}Build game for mac: ${txtred}no"
fi
echo -e "${txtgrn}Goto project directory...${txtrst}"
cd $project
projectdir=`pwd`
echo -e "${txtgrn}Project directory is ${txtblu} $projectdir ${txtrst}"
if [ $updaterepo == 1 ]
then
echo -e "${txtgrn}Try to get last revision from repo...${txtrst}"
git pull origin master
else
echo -e "${txtred}Git update disabled from params. Using current revision${txtrst}"
fi
REVISION_NUMBER=`git rev-list HEAD --count`
echo -e "${txtgrn}Revision number is ${txtblu} $REVISION_NUMBER ${txtrst}"
if [ $download_lastres == 1 ]
then
wget --quiet --continue https://www.dropbox.com/s/fw4mrhzo733xtdm/caesaria_latest_resources.zip
mkdir $projectdir/../caesaria-test
unzip -n caesaria_latest_resources.zip -d $projectdir/../caesaria-test
fi
if [ $buildlinux == 1 ]
then
echo -e "${txtred}Run building for linux... ${txtrst}"
echo -e "${txtgrn}Reset previous cmake build folder... ${txtblu} $currentdir/build ${txtrst}"
rm -rf build
mkdir build
cd build
if [ $debug_build == 1 ]
then
echo -e "${txtgrn}Build game in ${txtred}debug${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Debug ..
else
echo -e "${txtgrn}Build game in ${txtblu}release${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Release ..
fi
echo -e "${txtgrn}Start building... ${txtrst}"
make -j5
echo -e "${txtgrn}Goto to artifacts directory... ${txtrst}"
cd ${projectdir}
cd ../caesaria-test
#echo -e "${txtgrn}Remove unneed files ${txtblu}stdout.txt libFLAC-8.dll libmikmod-2.dll smpeg.dll${txtrst}"
#rm stdout.txt libFLAC-8.dll libmikmod-2.dll smpeg.dll
if [ $send_to_remote == 1 ]
then
echo -e "${txtgrn}Create package for linux${txtrst}"
PACKAGE_NAME_LINUX=caesaria_nightly_linux_$REVISION_NUMBER.zip
zip -r $PACKAGE_NAME_LINUX resources README.md caesaria.linux
if [ $have_sfpass == 1 ] && [ $have_sffolder == 1 ]
then
echo -e "Host frs.sourceforge.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
echo -e "${txtgrn}Upload nigtly build linux to sf.net${textrst}"
sshpass -p $sf_password scp -v $PACKAGE_NAME_LINUX ${sf_folder}
fi
if [ $have_wastefolder == 1 ]
then
echo -e "${txtgrn}Upload nigtly build linux to wasterdir:${txtblu}$waste_folder"
mv $PACKAGE_NAME_LINUX $waste_folder
else
echo -e "${txtred}Skip moving package to waste directory"
rm $PACKAGE_NAME_LINUX
fi
fi
fi #build for linux
if [ $buildsteamlin == 1 ]
then
cd $projectdir
echo -e "${txtred}Run building for steam linux... ${txtrst}"
echo -e "${txtgrn}Reset previous cmake build folder... ${txtblu} $currentdir/build ${txtrst}"
rm -rf build
mkdir build
cd build
if [ $debug_build == 1 ]
then
echo -e "${txtgrn}Build game in ${txtred}debug${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_STEAM=1 ..
else
echo -e "${txtgrn}Build game in ${txtblu}release${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_STEAM=1 ..
fi
echo -e "${txtgrn}Start building... ${txtrst}"
make -j5
echo -e "${txtgrn}Goto to artifacts directory... ${txtrst}"
cd ${projectdir}
cd ../caesaria-test
fi #build for steam linux
if [ $buildwindows == 1 ]
then
cd $projectdir
echo -e "${txtgrn}Reset previous cmake build folder... ${txtblu} $currentdir/build ${txtrst}"
rm -rf build
mkdir build
cd build
if [ $debug_build == 1 ]
then
echo -e "${txtgrn}Build game in ${txtred}debug${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../xcompile/win32-cross.cmake ..
else
echo -e "${txtgrn}Build game in ${txtblu}release${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../xcompile/win32-cross.cmake ..
fi
echo -e "${txtgrn}Start building... ${txtrst}"
make -j5
echo -e "${txtgrn}Goto to artifacts directory... ${txtrst}"
cd ${projectdir}
cd ../caesaria-test
echo -e "${txtgrn}Copy pthread dll to artifacts directory${txtrst}"
cp /usr/i686-w64-mingw32/lib/libwinptread-1.dll ./
if [ $send_to_remote == 1 ]
then
echo -e "${txtgrn}Create package for windows${txtrst}"
PACKAGE_NAME_WINDOWS=caesaria_nightly_windows_$REVISION_NUMBER.zip
zip -r $PACKAGE_NAME_WINDOWS resources README.md caesaria.exe *.dll
if [ $have_sfpass == 1 ] && [ $have_sffolder == 1 ]
then
echo -e "Host frs.sourceforge.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
echo -e "${txtgrn}Upload nigtly build windows to sf.net${textrst}"
sshpass -p $sf_password scp -vvv $PACKAGE_NAME_WINDOWS ${sf_folder}
fi
if [ $have_wastefolder == 1 ]
then
echo -e "${txtgrn}Upload nigtly build windows to wasterdir:${txtblu}$waste_folder"
mv $PACKAGE_NAME_WINDOWS $waste_folder
else
echo -e "${txtred}Skip moving package to waste directory"
rm $PACKAGE_NAME_WINDOWS
fi
fi
fi
if [ $buildsteamwin == 1 ]
then
cd $projectdir
echo -e "${txtred}Run building for steam windows... ${txtrst}"
echo -e "${txtgrn}Reset previous cmake build folder... ${txtblu} $currentdir/build ${txtrst}"
rm -rf build
mkdir build
cd build
if [ $debug_build == 1 ]
then
echo -e "${txtgrn}Build game in ${txtred}debug${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_STEAM=1 -DCMAKE_TOOLCHAIN_FILE=../xcompile/win32-cross.cmake ..
else
echo -e "${txtgrn}Build game in ${txtblu}release${txtgrn} mode ${txtrst}"
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_STEAM=1 -DCMAKE_TOOLCHAIN_FILE=../xcompile/win32-cross.cmake ..
fi
echo -e "${txtgrn}Start building... ${txtrst}"
make -j5
echo -e "${txtgrn}Goto to artifacts directory... ${txtrst}"
cd ${projectdir}
cd ../caesaria-test
echo -e "${txtgrn}Copy pthread dll to artifacts directory${txtrst}"
cp /usr/i686-w64-mingw32/lib/libwinptread-1.dll ./
fi
if [ $create_update == 1 ]
then
echo -e "${txtgrn}Goto artifacts folder${txtrst}"
cd ${projectdir}
cd ../caesaria-test
sf_update_folder=${sf_folder}/update/
echo -e "${txtgrn}Create update package${txtrst}"
echo -e "${txtgrn}Create ${txtblu}release${txtgrn} fileset${txtrst}"
./updater.linux --release --version 0.5.$REVISION_NUMBER
echo -e "${txtgrn}Create ${txtblu}update${txtgrn} fileset${txtrst}"
./updater.linux --update --version 0.5.$REVISION_NUMBER
echo -e "${txtgrn}Upload ${txtblu}sounds${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/audio/* ${sf_folder}/update/resources/audio/
echo -e "${txtgrn}Upload ${txtblu}gfx${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/gfx/* ${sf_folder}/update/resources/gfx/
echo -e "${txtgrn}Upload ${txtblu}gui models${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/gui/* ${sf_folder}/update/resources/gui/
echo -e "${txtgrn}Upload ${txtblu}localization${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/locale/* ${sf_folder}/update/resources/locale/
echo -e "${txtgrn}Upload ${txtblu}maps${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/maps/* ${sf_folder}/update/resources/maps/
echo -e "${txtgrn}Upload ${txtblu}missions${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/missions/* ${sf_folder}/update/resources/missions/
echo -e "${txtgrn}Upload ${txtblu}videos${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/smk/* ${sf_folder}/update/resources/smk/
echo -e "${txtgrn}Upload ${txtblu}tutorial${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/tutorial/* ${sf_folder}/update/resources/tutorial/
echo -e "${txtgrn}Upload ${txtblu}game remake models${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/*.model ${sf_folder}/update/resources/
echo -e "${txtgrn}Upload ${txtblu}game c3 models${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/*.c3 ${sf_folder}/update/resources/
echo -e "${txtgrn}Upload ${txtblu}fonts${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v resources/*.ttf ${sf_folder}/update/resources/
echo -e "${txtgrn}Upload ${txtblu}readme${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v README.md ${sf_folder}/update/
echo -e "${txtgrn}Upload ${txtblu}binaries${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v caesaria.* ${sf_folder}/update/
echo -e "${txtgrn}Upload ${txtblu}updaters${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v updater.* ${sf_folder}/update/
echo -e "${txtgrn}Upload ${txtblu}stable info${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v stable_info.txt ${sf_folder}/update/
echo -e "${txtgrn}Upload ${txtblu}update info${txtgrn} to remote update server ${txtrst}"
sshpass -p $SF_PASSWORD scp -v version_info.txt ${sf_folder}/update/
fi