Admin/profiling_reports
author wenzelm
Fri, 21 May 2010 17:26:42 +0200
changeset 37042 55efdc260182
parent 36859 51af1657263b
child 44152 a07748619f53
permissions -rwxr-xr-x
refrain from forcing a hardwired SHELL value, cf. 1494ded298a6 but it becomes obsolete again in 549969a7f582 and follow-ups;

#!/usr/bin/env bash
#
# 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