[Libreoffice-commits] buildbot.git: tb/tb_internals.sh
Norbert Thiebaud
nthiebaud at gmail.com
Sun May 19 18:43:51 PDT 2013
tb/tb_internals.sh | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
New commits:
commit 888d7cd30bba85d8ba0d93ef0b7310d0590a66d2
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Sun May 19 20:43:26 2013 -0500
tb: set the default value for TB_GERRIT_PLATFORM when we can
diff --git a/tb/tb_internals.sh b/tb/tb_internals.sh
index 242df2a..fa89fab 100644
--- a/tb/tb_internals.sh
+++ b/tb/tb_internals.sh
@@ -450,6 +450,23 @@ profile_gerrit_defaults()
if [ "${TB_GERRIT_TEST}" = "1" -o "${TB_TEST}" = "1" ] ; then
tb_GERRIT_TEST="-t"
fi
+ if [ -z "${TB_GERRIT_PLATFORM}" ] ; then
+ os=$(uname)
+ case "$os" in
+ *Linux*)
+ TB_GERRIT_PLATFORM="Linux"
+ ;;
+ Darwin)
+ TB_GERRIT_PLATFORM="MacOSX"
+ ;;
+ CYGWIN*)
+ TB_GERRIT_PLATFORM="Windows"
+ ;;
+ esac
+ if [ -z "${TB_GERRIT_PLATFORM}" ] ; then
+ die "Could not determine gerrit platform for ${os}"
+ fi
+ fi
}
More information about the Libreoffice-commits
mailing list