]> arthur.barton.de Git - bup.git/blob - dev/prep-for-freebsd-build
Drop vestigial compat.range
[bup.git] / dev / prep-for-freebsd-build
1 #!/bin/sh
2
3 set -exu
4
5 usage()
6 {
7     echo "Usage: prep-for-freebsd-build [python3]"
8 }
9
10 pyver="${1:-python3}"
11
12 # Install build deps
13 export ASSUME_ALWAYS_YES=yes
14 pkg update
15
16 # https://reviews.freebsd.org/D24816
17 pkg install rdiff-backup || true
18
19 pkgs='gmake git bash rsync curl par2cmdline readline duplicity'
20 pkgs="$pkgs rsnapshot"
21
22 case "$pyver" in
23     python3)
24         pkgs="$pkgs python38 py38-tornado py38-pytest py38-pytest-xdist"
25         pkg install $pkgs
26         ;;
27     *)
28         usage 1>&2
29         exit 2
30         ;;
31 esac