#!/bin/sh pwd=$PWD rm -rf dist for dir in */ ; do if [ -r "$dir/pyproject.toml" ] ; then cd "$dir" hatch build cd "$pwd" fi done hatch publish -r sebastian