lib/Tools/findlogics
author wenzelm
Tue, 13 Jun 2006 23:41:39 +0200
changeset 19876 11d447d5d68c
parent 17792 4a34fd6884b1
child 27201 e0323036bcf2
permissions -rwxr-xr-x
tuned;

#!/usr/bin/env bash
#
# $Id$
# Author: Markus Wenzel, TU Muenchen
#
# 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=""

ORIG_IFS="$IFS"
IFS=":"
for DIR in $ISABELLE_PATH
do
  DIR="$DIR/$ML_IDENTIFIER"
  for FILE in "$DIR"/*
  do
    if [ -f "$FILE" ]; then
      NAME=$(basename "$FILE" "$ML_SUFFIX")
      LOGICS="$LOGICS $NAME"
    fi
  done
done
IFS="$ORIG_IFS"

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