#!/bin/sh set -exu usage() { echo "Usage: prep-for-freebsd-build [python3]" } pyver="${1:-python3}" # Install build deps export ASSUME_ALWAYS_YES=yes pkg update # https://reviews.freebsd.org/D24816 pkg install rdiff-backup || true pkgs='gmake git bash rsync curl par2cmdline readline duplicity' pkgs="$pkgs rsnapshot" case "$pyver" in python3) pkgs="$pkgs python38 py38-tornado py38-pytest py38-pytest-xdist" pkg install $pkgs ;; *) usage 1>&2 exit 2 ;; esac