From 509d1404b04eedd6c2c10116dedaf2ea993d65a2 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Fri, 20 Mar 2015 12:46:08 +0100 Subject: [PATCH] release.sh: website: fix feeding the latest stable and rc Signed-off-by: Nicolas Sebrecht --- contrib/release.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/contrib/release.sh b/contrib/release.sh index 283c965..be53792 100755 --- a/contrib/release.sh +++ b/contrib/release.sh @@ -257,17 +257,19 @@ function git_release () { } + function get_last_rc () { git tag | grep -E '^v([0-9][\.-]){3}rc' | sort -n | tail -n1 } -# -# $1: new version -# +function get_last_stable () { + git tag | grep -E '^v([0-9][\.])+' | grep -v '\-rc' | sort -n | tail -n1 +} + function update_website_releases_info() { cat > "$WEBSITE_LATEST" <