explicit handling of ML environment within generic context;
eval_wrapper: non-critical, struct_name is always Isabelle, tuned comments;
eval_in/evaluate expect immutable Proof.context value;
use_text/use_file now depend on explicit ML name space;
#!/usr/bin/env bash
#
# $Id$
# Author: Makarius
#
# DESCRIPTION: Cumulative reports for Poly/ML profiling output.
THIS=$(cd $(dirname "$0"); echo "$PWD")
SRC="$1"
DST="$2"
mkdir -p "$DST"
for FILE in "$SRC"/*.gz
do
echo "$FILE"
NAME="$(basename "$FILE" .gz)"
gzip -dc "$FILE" | "$THIS/profiling_report" > "$DST/$NAME"
done