#!/bin/bash

link_target=$1
link_name=$2
output_dir=$3

if [ -z $link_target ]; then
    exit 1
elif [ -z $link_name ]; then
    exit 1
elif [ -z $output_dir ]; then
    exit 1
else 
    ln -s -f $link_target $link_name
    mv $link_name $output_dir
    echo \[web\]: creating a link named \"$link_name\" targeting \"$link_target\"
fi
