-
Notifications
You must be signed in to change notification settings - Fork 578
/
import_release.sh
executable file
·45 lines (32 loc) · 2.87 KB
/
import_release.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
if [ ! -f /home/ofadmin/hooks/.regenerate_release ]; then
exit
fi
version=$(cat /home/ofadmin/hooks/.regenerate_release)
rm -f /home/ofadmin/hooks/.regenerate_release
cd /home/ofadmin/openFrameworks.cc/
mkdir versions/v${version}
cd versions/v${version}/
if [ -f of_v${version}_msys2_mingw32_release.zip ]; then rm of_v${version}_msys2_mingw32_release.zip; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_msys2_mingw32_release.zip 2> ~/logs/import_release.log
if [ -f of_v${version}_msys2_mingw64_release.zip ]; then rm of_v${version}_msys2_mingw64_release.zip; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_msys2_mingw64_release.zip 2> ~/logs/import_release.log
# if [ -f of_v${version}_vs2015_release.zip ]; then rm of_v${version}_vs2015_release.zip; fi
# wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_vs2015_release.zip 2>> ~/logs/import_release.log
if [ -f of_v${version}_vs2017_release.zip ]; then rm of_v${version}_vs2017_release.zip; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_vs2017_release.zip 2>> ~/logs/import_release.log
if [ -f of_v${version}_osx_release.zip ]; then rm of_v${version}_osx_release.zip; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_osx_release.zip 2>> ~/logs/import_release.log
if [ -f of_v${version}_linux64gcc4_release.tar.gz ]; then rm of_v${version}_linux64gcc4_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_linux64gcc4_release.tar.gz 2>> ~/logs/import_release.log
if [ -f of_v${version}_linux64gcc5_release.tar.gz ]; then rm of_v${version}_linux64gcc5_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_linux64gcc5_release.tar.gz 2>> ~/logs/import_release.log
if [ -f of_v${version}_linux64gcc6_release.tar.gz ]; then rm of_v${version}_linux64gcc6_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_linux64gcc6_release.tar.gz 2>> ~/logs/import_release.log
if [ -f of_v${version}_ios_release.zip ]; then rm of_v${version}_ios_release.zip; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_ios_release.zip 2>> ~/logs/import_release.log
if [ -f of_v${version}_android_release.tar.gz ]; then rm of_v${version}_android_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_android_release.tar.gz 2>> ~/logs/import_release.log
if [ -f of_v${version}_linuxarmv6l_release.tar.gz ]; then rm of_v${version}_linuxarmv6l_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_linuxarmv6l_release.tar.gz 2>> ~/logs/import_release.log
if [ -f of_v${version}_linuxarmv7l_release.tar.gz ]; then rm of_v${version}_linuxarmv7l_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_linuxarmv7l_release.tar.gz 2>> ~/logs/import_release.log