lib/scripts/fileident
author chaieb
Sun, 25 Oct 2009 08:57:35 +0100
changeset 33152 241cfaed158f
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
Add a quantifier elimination for parametric linear arithmetic over ordered fields (parameters are multivariate polynomials)

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