blob: 3fec1961fa221b9f66a264959212daa8b781a54a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh -e
# Environment variables:
# * NO_HEADER: do not output the header line when set
. "$(dirname "$0")/common.sh"
FORMAT_STR="%-22s %-42s %9s %-40s %s\n"
# Header
if [ -z "$NO_HEADER" ]; then
printf "$FORMAT_STR" "# repository" "clone URL" "last tag" "last tag commit" "HEAD commit"
fi
# Table
for repo in $OSMO_RELEASE_REPOS; do
last_tag="$(osmo_git_last_tags "$repo" 1 "-")"
last_commit="$(osmo_git_last_commits "$repo" 1 "-")"
head_commit="$(osmo_git_head_commit "$repo")"
clone_url="$(osmo_git_clone_url "$repo")"
printf "$FORMAT_STR" \
"$repo.git" \
"$clone_url" \
"$last_tag" \
"$last_commit" \
"$head_commit"
done
|