diff options
-rwxr-xr-x | BuildReleases.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/BuildReleases.sh b/BuildReleases.sh index b692e82..46fd0db 100755 --- a/BuildReleases.sh +++ b/BuildReleases.sh | |||
@@ -12,8 +12,6 @@ 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' | ||
17 | 15 | ||
18 | unique_port() | 16 | unique_port() |
19 | { | 17 | { |
@@ -71,13 +69,19 @@ FTP_SERVER=10.0.2.2 | |||
71 | 69 | ||
72 | 70 | ||
73 | # Do Windows first, coz it still needs a manually typed password, dammit. | 71 | # Do Windows first, coz it still needs a manually typed password, dammit. |
72 | # Also coz Windows is unreliable, even putting in a one minute wait and still it often craps out the SSH session straight away. | ||
73 | # On top of that, best to run a defrag on the thing before trying this, otherwise it runs for six hours then bombs out. | ||
74 | if [ $do_windowsXP -eq 1 ] | 74 | if [ $do_windowsXP -eq 1 ] |
75 | then | 75 | then |
76 | echo "Building in qemu, Windows XP." | 76 | echo "Building in qemu, Windows XP." |
77 | # Extra PATH for cygwin, coz it don't pick up the Windows PATH in the serial console. | ||
78 | #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' | ||
79 | |||
77 | qemu-system-i386 -M pc -cpu athlon -m 2G -drive file=${img_windowsXP},index=0,media=disk,cache=none -net nic -net user,vlan=0,hostfwd=tcp::2222-:22 -rtc base=localtime & | 80 | qemu-system-i386 -M pc -cpu athlon -m 2G -drive file=${img_windowsXP},index=0,media=disk,cache=none -net nic -net user,vlan=0,hostfwd=tcp::2222-:22 -rtc base=localtime & |
78 | sleep 60 | 81 | sleep 90 |
79 | #expect -c 'spawn ssh -p 2222 me@localhost ; expect assword ; send " \n" ; interact' <<- zzzzEOFzzzz | 82 | #expect -c 'spawn ssh -p 2222 me@localhost ; expect assword ; send " \n" ; interact' <<- zzzzEOFzzzz |
80 | ssh -p 2222 me@localhost <<- zzzzEOFzzzz | 83 | ssh -p 2222 me@localhost <<- zzzzEOFzzzz |
84 | |||
81 | # TODO - there has to be a way of avoiding all this hard coded stuff, coz this is way too fragile. | 85 | # TODO - there has to be a way of avoiding all this hard coded stuff, coz this is way too fragile. |
82 | # On the other hand, when doing this via click and pointy VS express, you would need to manually configure them into that anyway. Which is still not good. | 86 | # On the other hand, when doing this via click and pointy VS express, you would need to manually configure them into that anyway. Which is still not good. |
83 | # Windows python insists on putting some crap at the end of the output, so we can't run the above version command here, instead just pass it. | 87 | # Windows python insists on putting some crap at the end of the output, so we can't run the above version command here, instead just pass it. |
@@ -106,9 +110,11 @@ then | |||
106 | ./2-trim-libraries-from-SL | 110 | ./2-trim-libraries-from-SL |
107 | ./3-compile-SL-source | 111 | ./3-compile-SL-source |
108 | ./4-package-viewer | 112 | ./4-package-viewer |
109 | cp /home/me/BUILD/SOURCE/linden/indra/build-nmake/newview/RelWithDebInfo/package/${version}-*.exe /home/me/TARBALLS | 113 | # cp /home/me/BUILD/SOURCE/linden/indra/build-nmake/newview/RelWithDebInfo/package/${version}-*.exe /home/me/TARBALLS |
114 | cp /home/me/BUILD/SOURCE/linden/indra/build-nmake/newview/RelWithDebInfo/package/Imprudence-*.exe /home/me/TARBALLS | ||
110 | cd /home/me/TARBALLS | 115 | cd /home/me/TARBALLS |
111 | lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd /home/me/TARBALLS && mput ${version}-*.exe' | 116 | # lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd /home/me/TARBALLS && mput ${version}-*.exe' |
117 | lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd /home/me/TARBALLS && mput Imprudence-*.exe' | ||
112 | shutdown -s now | 118 | shutdown -s now |
113 | zzzzEOFzzzz | 119 | zzzzEOFzzzz |
114 | 120 | ||