#!/bin/sh
# Compile roots.c and move the executable to ~/bin if it exists

echo Compiling roots.c
cc $* -s -O2 -Wall -o roots roots.c -lgsl -lgslcblas || exit
if [ -d ~/bin ]
then
	echo Moving result to ~/bin
	mv roots ~/bin || exit
fi
echo Done.
