meso-web

Sources of the |Méso|Star> website
git clone git://git.meso-star.fr/meso-web.git
Log | Files | Refs | README | LICENSE

commit 3eccf871281bfb1fef952a48cc8f4ec62c25d4fd
parent 68efa0eeb58eff04db4ab93e5c38d885ef6ae0ce
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 21 Mar 2019 09:40:50 +0100

Add the release notes status to the High-Tune overview

Diffstat:
Mhigh-tune/high-tune.html.in | 2++
Mhigh-tune/high-tune.sh | 35+++++++++++++++++++++++++++++++++--
2 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/high-tune/high-tune.html.in b/high-tune/high-tune.html.in @@ -150,6 +150,8 @@ Use the <code>man</code> command-line to consult them.</p> quickly run a <code>htrdr</code> rendering; this archive provides input data and scripts that are good starting points to use <code>htrdr</code>. +${RELEASE_NOTES} + <h2>License</h2> <p><code>htrdr</code> is free software released under the GPLv3+ license: GNU diff --git a/high-tune/high-tune.sh b/high-tune/high-tune.sh @@ -32,6 +32,17 @@ fi dir_curr=$(pwd) # Current directory dir_temp=$(mktemp -d) # Working directory +set +e +if hash markdown 2> /dev/null; then + markdown=markdown +elif hash markdown2 2> /dev/null; then + markdown=markdown2 +else + echo "Cannot find the markdown[2] command" + exit 1 +fi +set -e + ################################################################################ # Sign the package ################################################################################ @@ -54,16 +65,37 @@ fi echo "" ################################################################################ +# Extract the current archive +################################################################################ +cd $dir_temp +arch=High-Tune-$1-GNU-Linux64 +cp "$dir_curr/downloads/$arch.tar.gz" . +tar xzf $arch.tar.gz +cd $dir_curr + +################################################################################ +# Generate the release note +################################################################################ +cd $dir_temp +release_notes=$($markdown $arch/share/doc/htrdr/README.md \ + | sed '/^<h2>Release notes<\/h2>/,$!d' \ + | sed '/^<h2>License<\/h2>/,$d') +cd $dir_curr + +################################################################################ # Generate the overview page ################################################################################ tput bold; echo ">>> High-Tune web pages"; tput sgr0 echo "Write high-tune.html" { print_header High-Tune Overview - VERSION=$1 envsubst < high-tune.html.in; + VERSION=$1 RELEASE_NOTES="$release_notes" envsubst < high-tune.html.in; print_footer } > high-tune.html +################################################################################ +# Generate the starter pack +################################################################################ echo "Write starter-pack.html" { print_header High-Tune Starter-Pack @@ -75,7 +107,6 @@ echo "Write starter-pack.html" # Generate the reference documentation ################################################################################ cd $dir_temp -arch=High-Tune-$1-GNU-Linux64 cp "$dir_curr/downloads/$arch.tar.gz" . tar xzf $arch.tar.gz cd $dir_curr