commit 442806539b1b9a07522bc741d7f0cb27f9e7dcbf
parent 92459657421f689e3942994dc165dee7ba59a4b2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 13 Feb 2023 15:38:23 +0100
htrdr: add download section to the combustion spk
Diffstat:
2 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/htrdr/downloads/htrdr-Combustion-Starter-Pack-0.1.0.tar.gz b/htrdr/downloads/htrdr-Combustion-Starter-Pack-0.1.0.tar.gz
@@ -1 +1 @@
-#$# git-wad dd78d4668021e9bb17a40e5f92076cbf446915fc34185d798575e3105117e28d 218312050
-\ No newline at end of file
+#$# git-wad 2ef18c29023fcce1271102e36c9b25f3a80121fb59a99b34898759ae0925a101 218311935
+\ No newline at end of file
diff --git a/htrdr/htrdr_build.sh b/htrdr/htrdr_build.sh
@@ -222,11 +222,13 @@ comspk()
| sed '0,/<code>htrdr<\/code>/s//<a href=man\/man1\/htrdr.1.html>htrdr<\/a>/' \
| sed '0,/<code>htrdr-combustion<\/code>/s//<a href=man\/man1\/htrdr-combustion.1.html>htrdr-combustion<\/a>/')
validation=$(echo "${readme}" \
- | sed -n '/^<h2>Validation program<\/h2>/,/^<h2>Copyright notice<\/h2>/p' \
+ | sed -n '/^<h2>Validation program<\/h2>/,/^<h2>Release notes<\/h2>/p' \
| sed -e '$d' \
| sed '0,/<code>htrdr<\/code>/s//<a href=man\/man1\/htrdr.1.html>htrdr<\/a>/' \
| sed '0,/<code>htrdr-combustion<\/code>/s//<a href=man\/man1\/htrdr-combustion.1.html>htrdr-combustion<\/a>/')
-
+ release_notes=$(echo "${readme}" \
+ | sed -n '/^<h2>Release notes<\/h2>/,/^<h2>Copyright notice<\/h2>/p' \
+ | sed -e '1d' -e '$d')
copying=$(echo "${readme}" | sed -n '/^<h2>Copyright notice<\/h2>/,$p')
print_header -s htrdr -n Combustion-Starter-Pack -r ../
@@ -282,6 +284,32 @@ comspk()
echo "${dummy}"
echo "${validation}"
+
+ echo "<h2>Donwloads</h2>"
+
+ echo "<table>"
+ echo " <tr>"
+ echo " <th>Version</th>"
+ echo " <th>Archive</th>"
+ echo " </tr>"
+
+ archs=$(find downloads -name "htrdr-Combustion-Starter-Pack*.tar.gz" | sort -r)
+ echo "${archs}" |
+ while read -r i ; do
+ version=$(echo "${i}" | sed "s/.*Starter-Pack-\(.*\)\.tar.gz/\1/g")
+ echo " <tr>"
+ echo " <td>${version}</td>"
+ echo " <td>"
+ echo " [<a href=\"${i}\">tarball</a>]"
+ if [ -f "${i}.sig" ]; then
+ echo " [<a href=\"${i}.sig\">pgp</a>]"
+ fi
+ echo " </td>"
+ echo " </tr>"
+ done
+ echo "</table>"
+
+ echo "${release_notes}"
echo "${copying}"
print_footer