#!/usr/bin/env bash

## functions

function syntaxerror
{
	echo "SYNTAX: deploy <target-definition>" > /dev/stderr
}


## const

dir_build="build"


## args

if [ $# -ge 1 ] ; then target_definition=$1 && shift ; else syntaxerror ; fi


## exec

rsync \
	--update \
	--recursive \
	--verbose \
	${dir_build}/ \
	${target_definition}

