21 lines
570 B
Bash
Raw Normal View History

2019-11-18 18:18:28 -08:00
#!/bin/bash
set -e
set +x
2019-11-19 16:08:27 -08:00
trap "cd $(pwd -P)" EXIT
2019-11-19 16:58:09 -08:00
cd "$(dirname $0)"
cd "checkout"
2019-11-18 18:18:28 -08:00
if [[ "$(uname)" == "Darwin" ]]; then
./Tools/Scripts/build-webkit --release --touch-events
2019-11-18 18:18:28 -08:00
elif [[ "$(uname)" == "Linux" ]]; then
2019-11-22 22:39:13 -08:00
# Check that WebKitBuild exists and is not empty.
if ! [[ (-d ./WebKitBuild) && (-n $(ls -1 ./WebKitBuild/)) ]]; then
yes | DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitgtk-libs
fi
./Tools/Scripts/build-webkit --gtk --release --touch-events MiniBrowser
2019-11-18 18:18:28 -08:00
else
echo "ERROR: cannot upload on this platform!" 1>&2
exit 1;
fi