lib/scripts/fileident
author bulwahn
Fri, 22 Oct 2010 18:38:59 +0200
changeset 40104 82873a6f2b81
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
splitting Hotel Key card example into specification and the two tests for counter example generation

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