From 436e82531b67b3fe1aec29ee31d5950540ed7b23 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Fri, 22 Jul 2016 17:57:24 +0200 Subject: [PATCH] website-doc.sh: fix link in announces.yml Signed-off-by: Nicolas Sebrecht --- docs/website-doc.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/website-doc.sh b/docs/website-doc.sh index efe4915..64b6c6e 100755 --- a/docs/website-doc.sh +++ b/docs/website-doc.sh @@ -79,7 +79,7 @@ function parse_releases_get_link () { # $1: full release title # function parse_releases_get_version () { - echo $title | sed -r -e 's,^### [a-Z]+ (v[^ ]+).*,\1,' + echo $1 | sed -r -e 's,^### [a-Z]+ (v[^ ]+).*,\1,' } # @@ -87,7 +87,7 @@ function parse_releases_get_version () { # $1: full release title # function parse_releases_get_date () { - echo $title | sed -r -e 's,.*\(([0-9]+-[0-9]+-[0-9]+)\),\1,' + echo $1 | sed -r -e 's,.*\(([0-9]+-[0-9]+-[0-9]+).*,\1,' } # @@ -107,17 +107,17 @@ function releases () { # Announces for the mainline. grep -E '^### OfflineIMAP' ./Changelog.md | while read title do - link="$(parse_releases_get_link $title)" - v="$(parse_releases_get_version $title)" - d="$(parse_releases_get_date $title)" + link="$(parse_releases_get_link "$title")" + v="$(parse_releases_get_version "$title")" + d="$(parse_releases_get_date "$title")" echo "- {date: '${d}', version: '${v}', link: 'Changelog.html#${link}'}" done | tee -a "$ANNOUNCES_YML_TMP" # Announces for the maintenance releases. grep -E '^### OfflineIMAP' ./Changelog.maint.md | while read title do - link="$(parse_releases_get_link $title)" - v="$(parse_releases_get_version $title)" - d="$(parse_releases_get_date $title)" + link="$(parse_releases_get_link "$title")" + v="$(parse_releases_get_version "$title")" + d="$(parse_releases_get_date "$title")" echo "- {date: '${d}', version: '${v}', link: 'Changelog.maint.html#${link}'}" done | tee -a "$ANNOUNCES_YML_TMP" sort -nr "$ANNOUNCES_YML_TMP" >> "$ANNOUNCES_YML"