#!/bin/sh
# Usage: warnings-by-category log2
# extracts the warning lines of a package compilation log and sorts them by category.

grep '\(warning\|Warnung\):' "$@" | sed -e 's/^\(.*\) \[\([^]]*\)\]$/\2	\1/' | LC_ALL=C sort -u
