]> arthur.barton.de Git - bup.git/blob - dev/prep-for-freebsd-build
Avoid varying git archive content for ref; rework versioning
[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 common_pkgs='gmake git bash rsync curl par2cmdline readline duplicity'
11 common_pkgs="$common_pkgs rdiff-backup rsnapshot"
12
13 pyver="${1:-python2}"
14
15 # Install build deps
16 export ASSUME_ALWAYS_YES=yes
17 pkg update
18
19 case "$pyver" in
20     python2)
21         pkg install $common_pkgs python2 py27-tornado
22         ;;
23     python3)
24         pkg install $common_pkgs python3 py37-tornado
25         ;;
26     *)
27         usage 1>&2
28         exit 2
29         ;;
30 esac