forked from sillsdev/libpalaso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildupdate.sh
110 lines (99 loc) · 4.11 KB
/
buildupdate.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
#!/bin/bash
# server=build.palaso.org
# build_type=bt330
# root_dir=.
# $Id: da666a7e5eb1d63b434514279cd14cacd26c730f $
# *** Functions ***
force=
while getopts f opt; do
case $opt in
f)
force=1
;;
esac
done
shift $((OPTIND - 1))
copy_auto() {
where_curl=$(type -P curl)
where_wget=$(type -P wget)
if [ "$where_curl" != "" ]
then
copy_curl $1 $2
elif [ "$where_wget" != "" ]
then
copy_wget $1 $2
else
echo "Missing curl or wget"
exit 1
fi
}
copy_curl() {
echo "curl: $2 <= $1"
if [ -e "$2" ] && [ "$force" != "1" ]
then
curl -# -L -z $2 -o $2 $1
else
curl -# -L -o $2 $1
fi
}
copy_wget() {
echo "wget: $2 <= $1"
f=$(basename $2)
d=$(dirname $2)
cd $d
wget -q -L -N $1
cd -
}
# *** Results ***
# build: palaso-win32-develop-continuous (bt330)
# project: libpalaso
# URL: http://build.palaso.org/viewType.html?buildTypeId=bt330
# VCS: https://github.com/sillsdev/libpalaso.git []
# dependencies:
# [0] build: L10NSharp continuous (bt196)
# project: L10NSharp
# URL: http://build.palaso.org/viewType.html?buildTypeId=bt196
# clean: false
# revision: latest.lastSuccessful
# paths: {"L10NSharp.dll"=>"lib\\Release", "L10NSharp.pdb"=>"lib\\Release"}
# VCS: https://bitbucket.org/hatton/l10nsharp []
# [1] build: L10NSharp continuous (bt196)
# project: L10NSharp
# URL: http://build.palaso.org/viewType.html?buildTypeId=bt196
# clean: false
# revision: latest.lastSuccessful
# paths: {"L10NSharp.dll"=>"lib\\Debug", "L10NSharp.pdb"=>"lib\\Debug"}
# VCS: https://bitbucket.org/hatton/l10nsharp []
# [2] build: icucil-win32-default Continuous (bt14)
# project: Libraries
# URL: http://build.palaso.org/viewType.html?buildTypeId=bt14
# clean: false
# revision: latest.lastSuccessful
# paths: {"*.dll"=>"lib\\Release", "*.config"=>"lib\\Release"}
# VCS: https://github.com/sillsdev/icu-dotnet [master]
# [3] build: icucil-win32-default Continuous (bt14)
# project: Libraries
# URL: http://build.palaso.org/viewType.html?buildTypeId=bt14
# clean: false
# revision: latest.lastSuccessful
# paths: {"*.dll"=>"lib\\Debug", "*.config"=>"lib\\Debug"}
# VCS: https://github.com/sillsdev/icu-dotnet [master]
# make sure output directories exist
mkdir -p ./lib/Release
mkdir -p ./lib/Debug
# download artifact dependencies
copy_auto http://build.palaso.org/guestAuth/repository/download/bt196/latest.lastSuccessful/L10NSharp.dll ./lib/Release/L10NSharp.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt196/latest.lastSuccessful/L10NSharp.pdb ./lib/Release/L10NSharp.pdb
copy_auto http://build.palaso.org/guestAuth/repository/download/bt196/latest.lastSuccessful/L10NSharp.dll ./lib/Debug/L10NSharp.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt196/latest.lastSuccessful/L10NSharp.pdb ./lib/Debug/L10NSharp.pdb
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icu.net.dll ./lib/Release/icu.net.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icudt40.dll ./lib/Release/icudt40.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icuin40.dll ./lib/Release/icuin40.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icuuc40.dll ./lib/Release/icuuc40.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icu.net.dll.config ./lib/Release/icu.net.dll.config
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icu.net.dll ./lib/Debug/icu.net.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icudt40.dll ./lib/Debug/icudt40.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icuin40.dll ./lib/Debug/icuin40.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icuuc40.dll ./lib/Debug/icuuc40.dll
copy_auto http://build.palaso.org/guestAuth/repository/download/bt14/latest.lastSuccessful/icu.net.dll.config ./lib/Debug/icu.net.dll.config
# End of script