#!/bin/bash

if [ "$1" = "" ]; then
  echo "Usage: $0 (ver)"
  exit 1
fi

VER="$1"
DIR="webcpp-$VER"
make clean

cd ..
makeself --nox11 ./webcpp $DIR-setup.run $DIR ./setup
cd ./webcpp

echo "$USER, the executable distribution has been made"
