forked from openframeworks/ofSite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
import_release.sh
executable file
·42 lines (30 loc) · 2.6 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
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_release.zip ]; then rm of_v${version}_msys2_release.zip; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_msys2_release.zip 2> ~/logs/import_release.log
if [ -f of_v${version}_vs_release.zip ]; then rm of_v${version}_vs_release.zip; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_vs_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}_linux_release.tar.gz ]; then rm of_v${version}_linux_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_linux_release.tar.gz 2>> ~/logs/import_release.log
if [ -f of_v${version}_linux64_release.tar.gz ]; then rm of_v${version}_linux64_release.tar.gz; fi
wget http://ci.openframeworks.cc/versions/v${version}/of_v${version}_linux64_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