2 # Copyright 2017 The Rust Project Developers. See the COPYRIGHT
3 # file at the top-level directory of this distribution and at
4 # http://rust-lang.org/COPYRIGHT.
6 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7 # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8 # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9 # option. This file may not be copied, modified, or distributed
10 # except according to those terms.
17 echo ERROR: An error was encountered with the build.
22 bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
31 curl https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | \
34 # Some versions of the EMSDK archive have their contents in .emsdk-portable
35 # and others in emsdk_portable. Make sure the EMSDK ends up in a fixed path.
36 if [ -d emsdk-portable ]; then
37 mv emsdk-portable emsdk_portable
40 if [ ! -d emsdk_portable ]; then
41 echo "ERROR: Invalid emsdk archive. Dumping working directory." >&2
46 # Some versions of the EMSDK set the permissions of the root directory to
47 # 0700. Ensure the directory is readable by all users.
48 chmod 755 emsdk_portable
50 source emsdk_portable/emsdk_env.sh
51 hide_output emsdk update
52 hide_output emsdk install --build=Release sdk-tag-1.37.10-32bit
53 hide_output emsdk activate --build=Release sdk-tag-1.37.10-32bit