#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $DIR/..
  cabal build
  dist/build/habsim/habsim > $DIR/flight_path.js
  echo "Open $DIR/index.html in your browser."
popd

#!/usr/bin/env bash
set -e

if [[ "$1" == "" ]] || [[ ! -f "$1" ]]; then
  echo "Argument to script must be a Grib2 CSV file."
  exit 1
fi

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $DIR/..
  cabal build
  dist/build/habsim/habsim "$1" > $DIR/flight_path.js
  echo "Open $DIR/index.html in your browser."
popd

Update script to call demo with csv path
Update script to call demo with csv path

Signed-off-by: Ricky Elrod <3de8762d49a778edd8b1aa9f381ea5a9ccb62944@elrod.me>
