X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=dev%2Fprep-for-debianish-build;h=d91a1a03ba169a7970ca6447d4fa43cdeb197be3;hp=aab8c2d02bf38a1e7e38e9b1dd576d52ee160474;hb=2e45bac53d5f57404458d93ac5649348826bdd1a;hpb=666dc3c4503d438268bf52599fd914faf9c5e6dc diff --git a/dev/prep-for-debianish-build b/dev/prep-for-debianish-build index aab8c2d..d91a1a0 100755 --- a/dev/prep-for-debianish-build +++ b/dev/prep-for-debianish-build @@ -4,7 +4,7 @@ set -exuo pipefail usage() { - echo "Usage: prep-for-debianish-build [python2|python3]" + echo "Usage: prep-for-debianish-build [python2|python3] [pyxattr|xattr]" } export DEBIAN_FRONTEND=noninteractive @@ -14,19 +14,20 @@ common_debs='gcc make linux-libc-dev git rsync eatmydata acl attr par2' common_debs="$common_debs duplicity rdiff-backup rsnapshot" pyver="${1:-python2}" +xattr="${2:-pyxattr}" case "$pyver" in python2) apt-get install -y \ $common_debs \ python2.7-dev python-fuse \ - python-pyxattr python-pylibacl python-tornado + python-"$xattr" python-pylibacl python-tornado ;; python3) apt-get install -y \ $common_debs \ python3.7-dev python3-distutils python3-fuse \ - python3-pyxattr python3-pylibacl python3-tornado + python3-"$xattr" python3-pylibacl python3-tornado ;; *) usage 1>&2