diff options
author | David Walter Seikel | 2014-01-09 20:49:12 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-01-09 20:49:12 +1000 |
commit | 61f1df72f69e17dfe05a1aa2aafcb065197c5e6d (patch) | |
tree | 71caee57a3e202fb04afcb1dc540c2daf4e38ea3 | |
parent | Coz Windows is crappier than I thought. (diff) | |
download | ImpyReleaseBuilder-61f1df72f69e17dfe05a1aa2aafcb065197c5e6d.zip ImpyReleaseBuilder-61f1df72f69e17dfe05a1aa2aafcb065197c5e6d.tar.gz ImpyReleaseBuilder-61f1df72f69e17dfe05a1aa2aafcb065197c5e6d.tar.bz2 ImpyReleaseBuilder-61f1df72f69e17dfe05a1aa2aafcb065197c5e6d.tar.xz |
Add Mac OS X support, on a real Mac.
-rwxr-xr-x | BuildReleases.sh | 44 |
1 files changed, 39 insertions, 5 deletions
diff --git a/BuildReleases.sh b/BuildReleases.sh index 46fd0db..b6aead8 100755 --- a/BuildReleases.sh +++ b/BuildReleases.sh | |||
@@ -4,7 +4,7 @@ | |||
4 | do_linux64=1 | 4 | do_linux64=1 |
5 | do_linux32=1 | 5 | do_linux32=1 |
6 | do_local=0 | 6 | do_local=0 |
7 | do_mac=0 | 7 | do_mac=1 |
8 | do_windowsXP=1 | 8 | do_windowsXP=1 |
9 | 9 | ||
10 | # Where to find suitable VM disk images for the various OS's. | 10 | # Where to find suitable VM disk images for the various OS's. |
@@ -12,6 +12,9 @@ img_linux64=~/bin/ubuntu64_diff.qcow2 | |||
12 | img_linux32=~/bin/ubuntu32_diff.qcow2 | 12 | img_linux32=~/bin/ubuntu32_diff.qcow2 |
13 | img_windowsXP=/media/sdb2/IMAGES/xp_diff.qcow2 | 13 | img_windowsXP=/media/sdb2/IMAGES/xp_diff.qcow2 |
14 | 14 | ||
15 | # The Mac build is on a real Mac, coz Apple insists you need real Apple hardware. | ||
16 | FTP_HOST=172.16.0.3 | ||
17 | IP_mac=172.16.0.116 | ||
15 | 18 | ||
16 | unique_port() | 19 | unique_port() |
17 | { | 20 | { |
@@ -158,6 +161,41 @@ zzzzEOFzzzz | |||
158 | fi | 161 | fi |
159 | 162 | ||
160 | 163 | ||
164 | if [ $do_mac -eq 1 ] | ||
165 | then | ||
166 | echo "Building on a real Mac, 32 bit Mac OS X." && | ||
167 | ssh -i .ssh/builder_id_dsa builder@${IP_mac} <<- zzzzEOFzzzz | ||
168 | |||
169 | # Pick up MacPorts paths. | ||
170 | . .profile && | ||
171 | # Select the 3.2.6 Xcode. Dammit, this needs root to run it. | ||
172 | #xcode-select -switch /Xcode/Xcode_3.2.6 | ||
173 | cd ~ && | ||
174 | rm -fr BUILD && | ||
175 | rm -fr TARBALLS && | ||
176 | mkdir -p BUILD && | ||
177 | mkdir -p TARBALLS && | ||
178 | sleep 2 && | ||
179 | lftp -c 'open -p ${FTP_PORT} ${FTP_HOST} && lcd TARBALLS && get1 ${version}-source_${date}.tar.gz' | ||
180 | tar xzf TARBALLS/${version}-source_${date}.tar.gz -C BUILD && | ||
181 | cd BUILD/SOURCE && | ||
182 | cd linden/scripts/linux && | ||
183 | ./0-patch-SL-source && | ||
184 | ./1-get-libraries-from-SL && | ||
185 | ./2-trim-libraries-from-SL && | ||
186 | ./3-compile-SL-source && | ||
187 | ./4-package-viewer && | ||
188 | cd ../../indra/build-darwin-* && | ||
189 | cd newview && | ||
190 | cp ${version}-*.dmg ~/TARBALLS && | ||
191 | cd ~/TARBALLS && | ||
192 | lftp -c 'open -p ${FTP_PORT} ${FTP_HOST} && lcd ~/TARBALLS && mput ${version}-*.dmg' | ||
193 | # Select the 4.6.2 Xcode. Dammit, this needs root to run it. | ||
194 | #xcode-select -switch /Applications/Xcode_4.6.3.app/Contents/Developer | ||
195 | zzzzEOFzzzz | ||
196 | fi | ||
197 | |||
198 | |||
161 | if [ $do_local -eq 1 ] | 199 | if [ $do_local -eq 1 ] |
162 | then | 200 | then |
163 | echo "Building local." && | 201 | echo "Building local." && |
@@ -240,7 +278,3 @@ zzzzEOFzzzz | |||
240 | fi | 278 | fi |
241 | 279 | ||
242 | 280 | ||
243 | if [ $do_mac -eq 1 ] | ||
244 | then | ||
245 | echo "No Mac support yet, coz I need a real Mac for that." | ||
246 | fi | ||