aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-01-09 20:49:12 +1000
committerDavid Walter Seikel2014-01-09 20:49:12 +1000
commit61f1df72f69e17dfe05a1aa2aafcb065197c5e6d (patch)
tree71caee57a3e202fb04afcb1dc540c2daf4e38ea3
parentCoz Windows is crappier than I thought. (diff)
downloadImpyReleaseBuilder-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-xBuildReleases.sh44
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 @@
4do_linux64=1 4do_linux64=1
5do_linux32=1 5do_linux32=1
6do_local=0 6do_local=0
7do_mac=0 7do_mac=1
8do_windowsXP=1 8do_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
12img_linux32=~/bin/ubuntu32_diff.qcow2 12img_linux32=~/bin/ubuntu32_diff.qcow2
13img_windowsXP=/media/sdb2/IMAGES/xp_diff.qcow2 13img_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.
16FTP_HOST=172.16.0.3
17IP_mac=172.16.0.116
15 18
16unique_port() 19unique_port()
17{ 20{
@@ -158,6 +161,41 @@ zzzzEOFzzzz
158fi 161fi
159 162
160 163
164if [ $do_mac -eq 1 ]
165then
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
195zzzzEOFzzzz
196fi
197
198
161if [ $do_local -eq 1 ] 199if [ $do_local -eq 1 ]
162then 200then
163 echo "Building local." && 201 echo "Building local." &&
@@ -240,7 +278,3 @@ zzzzEOFzzzz
240fi 278fi
241 279
242 280
243if [ $do_mac -eq 1 ]
244then
245 echo "No Mac support yet, coz I need a real Mac for that."
246fi