#!/bin/bash

# DOC: http://techbase.kde.org/Development/Tutorials/Code_Checking

if [ ! -f "ChangeLog" ]; then
	echo "Usage: ./tools/krazy2.sh [directory to test]"
	echo "Example: ./tools/krazy2.sh src"
	exit 1
fi

export PATH=$PATH:/usr/local/Krazy2/bin

dir="$1"
if [ -z "$dir" ]; then
	dir="."
fi

pushd "$dir"
krazy2all
popd