lib/scripts/fileident
author haftmann
Tue, 26 Oct 2010 15:00:42 +0200
changeset 40187 9b6e918682d5
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
more general treatment of type argument in code certificates for operations on abstract types

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