lib/scripts/fileident
author krauss
Mon, 18 Jan 2010 10:34:27 +0100
changeset 34950 1f5e55eb821c
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
function package: declare Spec_Rules for simps from total functions, but not psimps or tail-rec equations

#!/usr/bin/env bash
#
# fileident --- produce file identification based

FILE="$1"

if [ -n "$ISABELLE_FILE_IDENT" -a -f "$FILE" -a -r "$FILE" ]
then
  ID=$(cat "$FILE" | $ISABELLE_FILE_IDENT | cut -d " " -f 1) && echo -n "$ID"
fi