lib/scripts/fileident
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Fri, 15 Oct 2010 21:46:45 +0900
changeset 39994 7bd8013b903f
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
FSet: give names to respectfulness theorems, rename list_all2_refl to avoid clash

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