#!/bin/bash

echo "Attempting to rsync the skeleton database ... "
if ! rsync --help &>/dev/null; then
    echo "Failed: no rsync binary found, please install it"
    exit 1;
fi

dir=`dirname "$0"`
dir=`cd "$dir"; pwd`
mkdir "$dir/share/skeletons" &>/dev/null
rsync -arvz rsync://autopackage.org/skeletons/ "$dir/share/skeletons"
