lib/Tools/mkproject
author haftmann
Thu, 09 Aug 2007 15:52:53 +0200
changeset 24198 4031da6d8ba3
parent 24185 cb0c4bd149a6
child 24206 9572c9374dc6
permissions -rwxr-xr-x
adaptions for code generation

#!/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)