#!/bin/sh
# Regenerate every figure this project contributes to the site, then copy them
# into public/figures/ under the skyrme_ prefix the pages reference.
# (Closes the provenance chain: fig1_validation.png -> skyrme_fig1_validation.png)
set -e
cd "$(dirname "$0")"
python3 make_plots.py       # fig1-4
python3 make_levels.py      # fig5-6
python3 mstar_test.py       # fig7
python3 mstar_controlled.py # fig8
for f in fig*.png; do
  cp "$f" "../../../public/figures/skyrme_$f"
done
echo "copied $(ls fig*.png | wc -l) figures into public/figures/ with skyrme_ prefix"
