lib/Tools/logo
author wenzelm
Thu, 24 Sep 1998 21:32:12 +0200
changeset 5557 d6ceb4275742
child 5570 ae1b56ef16b0
permissions -rwxr-xr-x
create an instance of the Isabelle logo;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5557
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     1
#!/bin/bash
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     2
#
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     3
# $Id$
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     4
#
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: create an instance of the Isabelle logo
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     6
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     7
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     8
PRG=$(basename $0)
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
     9
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    10
function usage()
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    11
{
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    12
  echo
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    13
  echo "Usage: $PRG NAME"
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    14
  echo
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    15
  echo "  Create instance NAME of the Isabelle logo (as EPS to stdout)."
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    16
  echo
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    17
  exit 1
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    18
}
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    19
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    20
function fail()
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    21
{
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    22
  echo "$1" >&2
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    23
  exit 2
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    24
}
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    25
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    26
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    27
## args
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    28
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    29
NAME=""
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    30
[ $# -ge 1 ] && { NAME="$1"; shift; }
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    31
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    32
[ $# -ne 0 -o "$NAME" = "-?" -o -z "$NAME" ] && usage
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    33
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    34
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    35
## main
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    36
d6ceb4275742 create an instance of the Isabelle logo;
wenzelm
parents:
diff changeset
    37
perl -p -e "s/<any>/$NAME/" $ISABELLE_HOME/lib/logo/isabelle_any.eps