lib/scripts/fileident
author immler@in.tum.de
Tue, 20 Jan 2009 22:19:46 +0100
changeset 29595 93ff1bca5e15
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
cancel whole group

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