devel-tools/check-release
raw| 1 | #! /usr/bin/env bash |
| 2 | # |
| 3 | # Checks the current repository and all if its submodules for being |
| 4 | # in "release shape". |
| 5 | |
| 6 | repo_status="$(cd $(dirname $0) && pwd)/repo-status" |
| 7 | check_cmd="test -e CHANGES && $repo_status" |
| 8 | |
| 9 | printf ' %20s %-10s %-8s %-8s %-7s %-5s %-15s %s\n' "" "Branch" "CHANGES" "Pending" "Modif" "Sub" "VERSION" "Tags" |
| 10 | |
| 11 | ( eval $check_cmd; git submodule foreach -q --recursive "$check_cmd; true" ) \ |
| 12 | | awk '/!/{print "- ", $0; next;} {print "+ ", $0; next;}' |