#!/bin/sh
# Regenerate debian/bundle-requirements.txt from uv.lock: the Textual (and its
# dependencies) that the .deb bundles. Run after 'uv lock'; CI fails if the file
# is out of date. pyyaml comes from apt, and numpy (pinned only for pip installs)
# from the ROS install.
set -e
cd "$(dirname "$0")/.."
{
    echo "# Generated by debian/update-bundle-requirements from uv.lock. Do not edit."
    uv export --frozen --no-dev --no-emit-project --no-header --no-annotate \
        --no-emit-package pyyaml --no-emit-package numpy
} > debian/bundle-requirements.txt
