zeek/auxil/zeek-aux/devel-tools/check-release
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

16 lines
483 B
Bash
Executable File

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