2016-11-02 22:53:02 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Get the parent directory of where this script is.
|
|
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
|
|
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
|
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
|
|
|
|
|
|
|
# Change into that dir because we expect that.
|
|
|
|
cd $DIR
|
|
|
|
|
2016-11-08 23:14:08 +00:00
|
|
|
# Make sure build tools are available.
|
|
|
|
make tools
|
|
|
|
|
2016-11-02 22:53:02 +00:00
|
|
|
# Build the web assets.
|
|
|
|
pushd ui
|
|
|
|
bundle
|
|
|
|
make dist
|
|
|
|
popd
|
|
|
|
|
2016-11-08 23:14:08 +00:00
|
|
|
# Make the static assets using the container version of the builder
|
|
|
|
make static-assets
|
|
|
|
|
2016-11-02 22:53:02 +00:00
|
|
|
exit 0
|