#!/usr/bin/env bash

ROOT=`dirname $0`
FIREFOX_PATH="$ROOT/../firefox"

# This will either download or update the local Firefox repo
"$ROOT/download-firefox-artifact"

# Update the debugger files, build firefox, and run all the mochitests
node "$ROOT/copy-assets.js"

cd "$FIREFOX_PATH"
./mach build
