lib/scripts/fileident
author wenzelm
Fri, 05 Nov 2010 21:42:32 +0100
changeset 40382 e239db6150e4
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
obsolete -- python installation on www4 is not modified (despite remaining "firstline" in graph and syndication views);

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