#!/bin/bash

#replace a symlink to a file by a copy of the file.

for LINK in $*; do
	if [ -L "$LINK" ]; then
		cp --remove-destination `readlink -f $LINK` "$LINK"
	else
		echo "$LINK is not a symbolic link";
	fi
done
