]> arthur.barton.de Git - bup.git/blob - dev/prep-for-freebsd-build
c95e77d21faa9e96bd137fbbf9cedd3963cbca5c
[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 [python2|python3]"
8 }
9
10 pyver="${1:-python2}"
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     python2)
24         pkgs="$pkgs python2 py27-tornado py27-pip"
25         pkg install $pkgs
26         pip-2.7 install --user pytest pytest-xdist
27         ;;
28     python3)
29         pkgs="$pkgs python38 py38-tornado py38-pytest py38-pytest-xdist"
30         pkg install $pkgs
31         ;;
32     *)
33         usage 1>&2
34         exit 2
35         ;;
36 esac