summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-05-24 16:08:36 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-05-24 16:08:36 -0400
commita8470df2c433d2ce0376dde4f1a54b46ba9b01d7 (patch)
tree8f05bd3512209d0e4b0f189d4e4f95f06c622514 /build.sh
parent10c45691c7c48557f183cc9686f6a5c13c21a29d (diff)
parent79131e8a480ab3611ce739717ed84c6ad76aa234 (diff)
merge
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index b322d30daf..4268c76e78 100755
--- a/build.sh
+++ b/build.sh
@@ -32,19 +32,23 @@ build_dir_CYGWIN()
installer_Darwin()
{
- ls -1td "$(build_dir_Darwin Release)/newview/"*.dmg 2>/dev/null | sed 1q
+ ls -1td "$(build_dir_Darwin ${last_built_variant:-Release})/newview/"*.dmg 2>/dev/null | sed 1q
}
installer_Linux()
{
- ls -1td "$(build_dir_Linux Release)/newview/"*.tar.bz2 2>/dev/null | sed 1q
+ ls -1td "$(build_dir_Linux ${last_built_variant:-Release})/newview/"*.tar.bz2 2>/dev/null | sed 1q
}
installer_CYGWIN()
{
- d=$(build_dir_CYGWIN Release)
- p=$(sed 's:.*=::' "$d/newview/Release/touched.bat")
- echo "$d/newview/Release/$p"
+ v=${last_built_variant:-Release}
+ d=$(build_dir_CYGWIN $v)
+ if [ -r "$d/newview/$v/touched.bat" ]
+ then
+ p=$(sed 's:.*=::' "$d/newview/$v/touched.bat")
+ echo "$d/newview/$v/$p"
+ fi
}
pre_build()