aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-04-18 01:46:16 +1000
committerDavid Walter Seikel2013-04-18 01:46:16 +1000
commit330eec6695dfb0ff5598a816473cb2dc1caa5e0e (patch)
tree0363f6bbb2a3da5716d586e9a45b935c1700925d
parentMinor clean ups. (diff)
downloadImpyReleaseBuilder-330eec6695dfb0ff5598a816473cb2dc1caa5e0e.zip
ImpyReleaseBuilder-330eec6695dfb0ff5598a816473cb2dc1caa5e0e.tar.gz
ImpyReleaseBuilder-330eec6695dfb0ff5598a816473cb2dc1caa5e0e.tar.bz2
ImpyReleaseBuilder-330eec6695dfb0ff5598a816473cb2dc1caa5e0e.tar.xz
Make it work for Windows.
Note - this uses stuff that has not been commited to the Imprudence repo yet. It still needs some tweaking before it's ready for prime time.
-rwxr-xr-xBuildReleases.sh27
1 files changed, 7 insertions, 20 deletions
diff --git a/BuildReleases.sh b/BuildReleases.sh
index 1620920..adb001e 100755
--- a/BuildReleases.sh
+++ b/BuildReleases.sh
@@ -79,6 +79,8 @@ then
79 #expect -c 'spawn ssh -p 2222 me@localhost ; expect assword ; send " \n" ; interact' <<- zzzzEOFzzzz 79 #expect -c 'spawn ssh -p 2222 me@localhost ; expect assword ; send " \n" ; interact' <<- zzzzEOFzzzz
80 ssh -p 2222 me@localhost <<- zzzzEOFzzzz 80 ssh -p 2222 me@localhost <<- zzzzEOFzzzz
81 # TODO - there has to be a way of avoiding all this hard coded stuff, coz this is way too fragile. 81 # TODO - there has to be a way of avoiding all this hard coded stuff, coz this is way too fragile.
82 # 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.
83 export version=${version}
82 PATH='/bin:/usr/local/bin:/usr/bin:'\$PATH':/cygdrive/c/Program Files/Microsoft SDKs/v6.1/Bin:/cygdrive/c/Program Files/Microsoft Visual Studio 8/SDK/v2.0/Bin:/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/Inno Setup 5' 84 PATH='/bin:/usr/local/bin:/usr/bin:'\$PATH':/cygdrive/c/Program Files/Microsoft SDKs/v6.1/Bin:/cygdrive/c/Program Files/Microsoft Visual Studio 8/SDK/v2.0/Bin:/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/Inno Setup 5'
83 #./.profile 85 #./.profile
84 #./.bash_profile 86 #./.bash_profile
@@ -87,40 +89,25 @@ then
87 export INCLUDE="C:\Program Files\Microsoft Visual Studio 8\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include" 89 export INCLUDE="C:\Program Files\Microsoft Visual Studio 8\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include"
88 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" 90 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"
89 export LIBPATH="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" 91 export LIBPATH="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"
90 #echo \$PATH 92 # So that we can find a place to cache the pre builds.
91 #set 93 mkdir -p /cygdrive/c/TEMP
92 cd /home/me 94 cd /home/me
93 rm -fr BUILD 95 rm -fr BUILD
94 mkdir -p BUILD 96 mkdir -p BUILD
95 rm -fr TARBALLS 97 rm -fr TARBALLS
96 mkdir -p TARBALLS 98 mkdir -p TARBALLS
97 cd /home/me/BUILD/SOURCE
98 cd linden/scripts/linux
99 lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd TARBALLS && get1 ${version}-source_${date}.tar.gz' 99 lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd TARBALLS && get1 ${version}-source_${date}.tar.gz'
100 tar xzf TARBALLS/${version}-source_${date}.tar.gz -C BUILD 100 tar xzf TARBALLS/${version}-source_${date}.tar.gz -C BUILD
101 cd /home/me/BUILD/SOURCE/linden/scripts/linux
101 102
102 # Apparently my "works everywhere" Linux specific scripts work on Cygwin to. Mostly. 103 # Apparently my "works everywhere" Linux specific scripts work on Cygwin to. Mostly.
103 ./0-patch-SL-source 104 ./0-patch-SL-source
104 ./1-get-libraries-from-SL 105 ./1-get-libraries-from-SL
105 ./2-trim-libraries-from-SL 106 ./2-trim-libraries-from-SL
106 ./3-compile-SL-source 107 ./3-compile-SL-source
108 ./4-package-viewer
107 109
108 cd /home/me/BUILD/SOURCE 110 cp /home/me/BUILD/SOURCE/linden/indra/build-nmake/newview/package/Imprudence-*.exe /home/me/TARBALLS
109 rm linden/indra/CMakeCache.txt
110 cd linden/indra
111 # This would be preferable, but NMake is not an option.
112 #./develop.py -G "nmake" --type=Release build
113 # Also, apparently there's Cygwin support, but might have to install the cygwin python for that.
114 cmake -DCMAKE_BUILD_TYPE:STRING="Release" -DSTANDALONE:BOOL=OFF -DUNATTENDED:BOOL=OFF -DROOT_PROJECT_NAME:STRING="Imprudence" -DPACKAGE:BOOL=ON -G "NMake Makefiles" build .
115 # Hack around a bug in cmake that I'm surprised did not hit GUI controlled builds.
116 sed -i "s|\(^RC_FLAGS .* \) /GS .*$|\1|" win_crash_logger/CMakeFiles/windows-crash-logger.dir/flags.make
117 sed -i "s|\(^RC_FLAGS .* \) /GS .*$|\1|" newview/CMakeFiles/imprudence-bin.dir/flags.make
118 #cd build-nmake
119 nmake
120
121 # Build the inno installer.
122 iscc newview/package/Imprudence-1.4.0.3-beta-2.iss
123 cp newview/package/Imprudence-*.exe /home/me/TARBALLS
124 cd /home/me/TARBALLS 111 cd /home/me/TARBALLS
125 lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd /home/me/TARBALLS && mput Imprudence-*' 112 lftp -c 'open -p ${FTP_PORT} ${FTP_SERVER} && lcd /home/me/TARBALLS && mput Imprudence-*'
126 113