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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24185
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     1
#!/usr/bin/env bash
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     2
#
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     3
# $Id$
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     4
# Author: David Aspinall and Makarius Wenzel
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     5
#
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     6
# DESCRIPTION: prepare Isabelle project, including document subdirectory
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     7
# A useful abbreviation of a pair of isatool calls.
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     8
#
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
     9
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    10
PRG="$(basename "$0")"
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    11
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    12
function usage()
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    13
{
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    14
  echo
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    15
  echo "Usage: $PRG NAME"
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    16
  echo
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    17
  echo "  Prepare a session directory in the current directory, including IsaMakefile,"
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    18
  echo "  document source and LaTeX files."
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    19
  exit 1
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    20
}
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    21
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    22
if [ "$#" -eq 1 ]; then
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    23
   NAME="$1"; shift
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    24
else
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    25
  usage
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    26
fi
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    27
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    28
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    29
$ISATOOL mkdir -b -q $NAME
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    30
(cd document; $ISATOOL latex -o sty)
cb0c4bd149a6 Useful abbreviation of isatool commands used by Eclipse
aspinall
parents:
diff changeset
    31