Admin/profiling_reports
author wenzelm
Fri, 05 Oct 2007 11:16:30 +0200
changeset 24856 f06829479407
parent 23604 56f945f1ed50
child 36859 51af1657263b
permissions -rwxr-xr-x
cover only .gz files;

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