diff options
author | David Walter Seikel | 2013-03-27 12:02:02 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-03-27 12:02:02 +1000 |
commit | f5b96097976019575cc362ea89786cce0f5d46fb (patch) | |
tree | 215408a24d380beee0b8fe888a86e4717294b032 | |
parent | Ssh might work better on Windows. (diff) | |
download | ImpyReleaseBuilder-f5b96097976019575cc362ea89786cce0f5d46fb.zip ImpyReleaseBuilder-f5b96097976019575cc362ea89786cce0f5d46fb.tar.gz ImpyReleaseBuilder-f5b96097976019575cc362ea89786cce0f5d46fb.tar.bz2 ImpyReleaseBuilder-f5b96097976019575cc362ea89786cce0f5d46fb.tar.xz |
Redo Windows via ssh, and actually get it to start compiling.
Still needs work.
-rwxr-xr-x | BuildReleases.sh | 108 |
1 files changed, 85 insertions, 23 deletions
diff --git a/BuildReleases.sh b/BuildReleases.sh index 5f85383..fd83073 100755 --- a/BuildReleases.sh +++ b/BuildReleases.sh | |||
@@ -2,9 +2,9 @@ | |||
2 | 2 | ||
3 | # These control which ones get built. | 3 | # These control which ones get built. |
4 | do_local=0 | 4 | do_local=0 |
5 | do_linux64=1 | 5 | do_linux64=0 |
6 | do_linux32=1 | 6 | do_linux32=0 |
7 | do_windowsXP=0 | 7 | do_windowsXP=1 |
8 | do_mac=0 | 8 | do_mac=0 |
9 | 9 | ||
10 | # Where to find suitable disk images for the various OS's. | 10 | # Where to find suitable disk images for the various OS's. |
@@ -12,6 +12,8 @@ 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 | # Extra PATH for cygwin, coz it don't pick up the Windows PATH in the serial console. | ||
16 | cw_path='/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/CMake 2.8/bin:/cygdrive/c/Python27:/cygdrive/c/Program Files/Git/cmd' | ||
15 | 17 | ||
16 | unique_port() | 18 | unique_port() |
17 | { | 19 | { |
@@ -155,27 +157,87 @@ fi | |||
155 | if [ $do_windowsXP -eq 1 ] | 157 | if [ $do_windowsXP -eq 1 ] |
156 | then | 158 | then |
157 | echo "Building in qemu, Windows XP." | 159 | echo "Building in qemu, Windows XP." |
160 | qemu-system-i386 -M pc -cpu athlon -m 2G -hda ${img_windowsXP} -net nic -net user,vlan=0,hostfwd=tcp::2222-:22 -rtc base=localtime & | ||
161 | sleep 30 | ||
162 | ssh -p 2222 me@localhost <<- zzzzEOFzzzz | ||
163 | PATH='/bin:/usr/local/bin:/usr/bin:'\$PATH':/cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/IDE:/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/bin:/cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/Tools/:/cygdrive/c/Program Files/Microsoft Visual Studio 8/SDK/v2.0/Bin' | ||
164 | ./.profile | ||
165 | ./.bash_profile | ||
166 | export DXSDK_DIR='C:\Program Files\Microsoft DirectX SDK (November 2008)\' | ||
167 | #vcvarsall.bat x86 | ||
168 | export INCLUDE="C:\Program Files\Microsoft Visual Studio 8\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include" | ||
169 | export LIB="C:\Program Files\Microsoft Visual Studio 8\VC\lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Lib;C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib" | ||
170 | export LIBPATH="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" | ||
171 | echo \$PATH | ||
172 | set | ||
173 | cd /home/me | ||
174 | #rm -fr BUILD/SOURCE/linden/indra | ||
175 | #rm -fr BUILD | ||
176 | rm -fr TARBALLS | ||
177 | #mkdir -p BUILD | ||
178 | mkdir -p TARBALLS | ||
179 | lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd TARBALLS && get1 impy-release-source_${date}.tar.gz' | ||
180 | tar xzf TARBALLS/impy-release-source_${date}.tar.gz -C BUILD | ||
181 | cd /home/me/BUILD/SOURCE | ||
182 | rm linden/indra/CMakeCache.txt | ||
183 | cd linden/scripts/linux | ||
184 | |||
185 | ./0-patch-SL-source | ||
186 | ./1-get-libraries-from-SL | ||
187 | ./2-trim-libraries-from-SL | ||
188 | ./3-compile-SL-source | ||
189 | ls -la ../../indra | ||
190 | #cd ../../indra/viewer-windows-* | ||
191 | #make package | ||
192 | |||
193 | cd /home/me/BUILD/SOURCE | ||
194 | rm linden/indra/CMakeCache.txt | ||
195 | cd linden/indra | ||
196 | cmake -G "NMake Makefiles" . | ||
197 | nmake | ||
198 | |||
199 | ls -la | ||
200 | #cp Imprudence-* ../../../../../TARBALLS | ||
201 | cd /home/me/BUILD/TARBALLS | ||
202 | lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd TARBALLS && mput Imprudence-*' | ||
203 | |||
204 | shutdown -s now | ||
205 | zzzzEOFzzzz | ||
206 | |||
158 | # A here document would be preferable, but "interact" won't work then. | 207 | # A here document would be preferable, but "interact" won't work then. |
159 | expect -c " | 208 | # expect -c " |
160 | set timeout -1 | 209 | # set timeout -1 |
161 | set send_slow {1 .1} | 210 | # set send_slow {1 .1} |
162 | spawn qemu-system-i386 -M pc -cpu athlon -m 2G -hda ${img_windowsXP} -serial stdio | 211 | # spawn qemu-system-i386 -M pc -cpu athlon -m 2G -hda ${img_windowsXP} -serial stdio -rtc base=localtime |
163 | match_max 100000 | 212 | # match_max 100000 |
164 | strace 1 | 213 | # strace 1 |
165 | expect -exact \"\$ \"; sleep .1; send -s -- \"cd /home/me\r\" | 214 | # expect -exact \"\$ \"; sleep .1; send -s -- \"PATH=\\\$PATH':${cw_path}'\r\" |
166 | expect -exact \"\$ \"; sleep .1; send -s -- \"rm -fr BUILD\r\" | 215 | # expect -exact \"\$ \"; sleep .1; send -s -- \"echo \\\$PATH\r\" |
167 | expect -exact \"\$ \"; sleep .1; send -s -- \"rm -fr TARBALLS\r\" | 216 | # expect -exact \"\$ \"; sleep .1; send -s -- \"cd /home/me\r\" |
168 | expect -exact \"\$ \"; sleep .1; send -s -- \"su - me -c 'mkdir -p BUILD'\r\" | 217 | # expect -exact \"\$ \"; sleep .1; send -s -- \"rm -fr BUILD\r\" |
169 | expect -exact \"\$ \"; sleep .1; send -s -- \"su - me -c 'mkdir -p TARBALLS'\r\" | 218 | # expect -exact \"\$ \"; sleep .1; send -s -- \"rm -fr TARBALLS\r\" |
170 | expect -exact \"\$ \"; sleep 2; send -s -- \"lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd TARBALLS && get1 impy-release-source_${date}.tar.gz'\r\" | 219 | # expect -exact \"\$ \"; sleep .1; send -s -- \"mkdir -p BUILD\r\" |
171 | expect -exact \"\$ \"; sleep .1; send -s -- \"su - me -c 'tar xzf TARBALLS/impy-release-source_${date}.tar.gz -C BUILD'\r\" | 220 | # expect -exact \"\$ \"; sleep .1; send -s -- \"mkdir -p TARBALLS\r\" |
172 | expect -exact \"\$ \"; sleep .1; send -s -- \"su - me -c 'ls -la BUILD'\r\" | 221 | # expect -exact \"\$ \"; sleep 2; send -s -- \"lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd TARBALLS && get1 impy-release-source_${date}.tar.gz'\r\" |
173 | expect -exact \"\$ \"; sleep .1; send -s -- \"su - me -c 'ls -la TARBALLS'\r\" | 222 | # expect -exact \"\$ \"; sleep .1; send -s -- \"tar xzf TARBALLS/impy-release-source_${date}.tar.gz -C BUILD\r\" |
174 | expect -exact \"\$ \"; sleep .1; send -s -- \"cd /home/me/BUILD/SOURCE\r\" | 223 | # expect -exact \"\$ \"; sleep .1; send -s -- \"cd /home/me/BUILD/SOURCE\r\" |
175 | 224 | # expect -exact \"\$ \"; sleep .1; send -s -- \"cd linden/scripts/linux\r\" | |
176 | interact quit return; sleep .1; send -s -- \"\r\" | 225 | |
177 | expect -exact \"\$ \"; sleep .1; send -s -- \"shutdown -s now\r\" | 226 | # expect -exact \"\$ \"; sleep .1; send -s -- \"./0-patch-SL-source\r\" |
178 | expect eof" | 227 | # expect -exact \"\$ \"; sleep .1; send -s -- \"./1-get-libraries-from-SL\r\" |
228 | # expect -exact \"\$ \"; sleep .1; send -s -- \"./2-trim-libraries-from-SL\r\" | ||
229 | # expect -exact \"\$ \"; sleep .1; send -s -- \"./3-compile-SL-source\r\" | ||
230 | # expect -exact \"\$ \"; sleep .1; send -s -- \"cd ../../indra/viewer-windows-*\r\" | ||
231 | # expect -exact \"\$ \"; sleep .1; send -s -- \"make package\r\" | ||
232 | |||
233 | # expect -exact \"\$ \"; sleep .1; send -s -- \"cp Imprudence-* ../../../../../TARBALLS\r\" | ||
234 | # expect -exact \"\$ \"; sleep .1; send -s -- \"cd /home/me/BUILD/TARBALLS\r\" | ||
235 | # expect -exact \"\$ \"; sleep .1; send -s -- \"ls -la\r\" | ||
236 | # expect -exact \"\$ \"; sleep 2; send -s -- \"lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd TARBALLS && mput Imprudence-*'\r\" | ||
237 | |||
238 | # interact quit return; sleep .1; send -s -- \"\r\" | ||
239 | # expect -exact \"\$ \"; sleep .1; send -s -- \"shutdown -s now\r\" | ||
240 | # expect eof" | ||
179 | echo '' | 241 | echo '' |
180 | sleep 10 | 242 | sleep 10 |
181 | fi | 243 | fi |