#!/bin/bash

if [ $USER != "root" ]
then
	echo "Sorry, "$USER", but you're not root!";
	exit 1;
fi

CHECKINSTALL=`which checkinstall`;
if [ ! -e "$CHECKINSTALL" ]
then
	echo "Sorry, cannot find 'checkinstall', please install!";
	exit 1;
fi

./configure --prefix=/usr \
&& bash debian_create_deb
