ClickHouse/utils/list-versions/list-versions.sh
2020-08-27 17:42:49 +03:00

4 lines
255 B
Bash
Executable File

#!/bin/bash
git tag --list | grep -P 'v.+-(stable|lts)' | sort -V | xargs git show --format='%ai' | awk '/^v/ { version = $1 } /^[0-9]+/ { if (version) { date = $1 } } { if (version && date) { print version "\t" date; version = ""; date = ""; } }' | tac