lib/Tools/mkproject
author aspinall
Wed, 08 Aug 2007 20:03:17 +0200
changeset 24185 cb0c4bd149a6
child 24206 9572c9374dc6
permissions -rwxr-xr-x
Useful abbreviation of isatool commands used by Eclipse

#!/usr/bin/env bash
#
# $Id$
# Author: David Aspinall and Makarius Wenzel
#
# DESCRIPTION: prepare Isabelle project, including document subdirectory
# A useful abbreviation of a pair of isatool calls.
#

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

function usage()
{
  echo
  echo "Usage: $PRG NAME"
  echo
  echo "  Prepare a session directory in the current directory, including IsaMakefile,"
  echo "  document source and LaTeX files."
  exit 1
}

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


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