lib/Tools/mkproject
author wenzelm
Fri, 17 Jun 2011 23:18:22 +0200
changeset 43425 0a5612040a8b
parent 29143 72c960b2b83e
permissions -rwxr-xr-x
more explicit error message; convert/revert range; tuned;

#!/usr/bin/env bash
#
# Author: David Aspinall
#
# DESCRIPTION: prepare a session directory for PG-Eclipse

PRG="$(basename "$0")"

function usage()
{
  echo
  echo "Usage: isabelle $PRG NAME"
  echo
  echo "  Prepare a session directory for PG-Eclipse."
  exit 1
}

if [ "$#" -eq 1 ]; then
  NAME="$1"; shift
else
  usage
fi

"$ISABELLE_TOOL" mkdir -b -q "$NAME"
( cd document; "$ISABELLE_TOOL" latex -o sty; )