lib/scripts/fileident
author bulwahn
Tue, 07 Sep 2010 11:51:53 +0200
changeset 39190 a2775776be3f
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
adding code attribute to definition of equality of finite sets for executability of equality of finite sets

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