#!/bin/sh
set -e
install -o root -g root -d /usr/local/lib/hg-admin-tools
install -o root -g root -t /usr/local/lib/hg-admin-tools \
src/access.py \
src/hg-ssh \
src/refresh-auth \
src/ruleset.py
install -o root -g root -d /usr/local/lib/hg-admin-tools/init
install -o root -g root -t /usr/local/lib/hg-admin-tools/init \
src/init/hgadmin-hgrc
install -o root -g root -d /usr/local/lib/hg-admin-tools/init/break-in
install -o root -g root -t /usr/local/lib/hg-admin-tools/init/break-in \
src/init/break-in/create-breakin-repository \
src/init/break-in/ssh-replacement
src/init/break-in/as-if-by-ssh
src/init/break-in/break-in
install -o root -g root -d /etc/hg-admin-tools
install -o root -g root -t /etc/hg-admin-tools \
src/init/conf/hg-ssh-wrapper \
src/init/conf/remote-hgrc