lib/scripts/fileident
author krauss
Tue, 21 Apr 2009 09:53:27 +0200
changeset 30908 7ccf4a3d764c
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
replace type cong = {thm : thm, lhs : term} by plain thm -- the other component has been unused for a long time.

#!/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