lib/Tools/findlogics
author wenzelm
Thu, 01 Jul 1999 21:28:49 +0200
changeset 6880 ce2b19e4402d
parent 3007 e5efa177ee0c
child 9788 df671fa2562a
permissions -rwxr-xr-x
Isar_examples/KnasterTarski.thy;

#!/bin/bash
#
# $Id$
#
# DESCRIPTION: collect heap names from ISABELLE_PATH


PRG=$(basename $0)

function usage()
{
  echo
  echo "Usage: $PRG"
  echo
  echo "  Collect heap file names from ISABELLE_PATH."
  echo
  exit 1
}


## main

[ $# -ne 0 ] && usage


LOGICS=""

for DIR in $(echo $ISABELLE_PATH | tr : " ")
do
  for FILE in $DIR/*
  do
    if [ -f "$FILE" ]; then
      NAME=$(basename "$FILE")
      LOGICS="$LOGICS $NAME"
    fi
  done
done

echo $({ for L in $LOGICS; do echo $L; done; } | sort | uniq)