#!/bin/sh

if test "$1" = "-i"; then
	FTRACEIGNOREME="`pwd`";
	export FTRACEIGNOREME
	shift;
else
	unset FTRACEIGNOREME
fi

firstchar="`echo $1 | cut -c1`";
if test "$firstchar" != "/"; then
	FTRACELOGFILE="`pwd`/$1";
else
	FTRACELOGFILE="$1";
fi
export FTRACELOGFILE

shift;

if test -z "$1"; then
	echo "Usage: $0 [-i] <outfile> <program> ...";
	exit 1;
fi

rm -f $FTRACELOGFILE

LD_PRELOAD=@prefix@/lib/libftrace.so
export LD_PRELOAD
$*



syntax highlighted by Code2HTML, v. 0.9.1