lib/scripts/fileident
author haftmann
Wed, 10 Feb 2010 14:12:04 +0100
changeset 35092 cfe605c54e50
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
moved less_eq, less to Orderings.thy; moved abs, sgn to Groups.thy

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