tb/tb_internals.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
New commits: commit 888d7cd30bba85d8ba0d93ef0b7310d0590a66d2 Author: Norbert Thiebaud <nthieb...@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 } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits