#!/bin/bash
if [[ ! -f $1 ]]; then
>&2 echo "Error: could not find file \"$1\""
exit 2
fi
db-make
psql -U $DBUSER -d $DBNAME -f $1