#/bin/sh
if [ -z "$1" ]; then
  echo "Error: You need to specify where your ircd is about to be installed!"
  echo "Syntax: ./makecert <install location>"
else
  echo "* Making SSL Certificates...."
  echo "* This is mandatory. Please fill out the required information."
  if [ ! -d "$1" ]; then
    echo " - Destination directory not created"
    tools/ssl-cert.sh $PWD
  else
    echo " + Destination directory exists!"
    tools/ssl-cert.sh $1
  fi
  echo "* Your all set! Run 'make' "
fi

