#!/bin/sh set -e if [ ! -e .hg ]; then hg init echo "[web]\n" > .hg/hgrc echo "$(hostname) /etc repository" > .hg/hgrc fi