#!/bin/sh1#2# MAINTAINER: [email protected]34set -e5set -o pipefail67export LC_ALL=C89##10## git-diff-ports.sh: returns the list of ports with uncommitted changes in the repository11##1213# check that packaged dependencies are installed1415for dep in git; do16if ! which -s $dep; then17echo "error: the '$dep' dependency is missing"18if [ $dep == "git" ]; then19echo "... please install the 'git' package"20fi21exit 122fi23done242526# MAIN2728git diff HEAD "$@" |29grep "^diff " |30grep -v Mk/ |31grep -v Tools/ |32sed -E 's|diff --git a/||; s| .*||; s|([^/]+/[^/]+).*|\1|' |33grep -v '/Makefile$' |34sort |35uniq363738