lib/scripts/fileident
author wenzelm
Sun, 27 Sep 2009 19:39:40 +0200
changeset 32709 c5956b54a460
parent 29145 b1c6f4563df7
permissions -rwxr-xr-x
reachable: recovered reverse post-order (lost in 73ad4884441f), which is expected for all_preds/all_succs and required for topological_order;

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