starter-pack.sh (3370B)
1 #!/bin/sh 2 3 # Copyright (C) 2017-2025 |Méso|Star> (contact@meso-star.com) 4 # 5 # This program is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 . "./config.sh.in" 19 20 set -e 21 22 readme="$(sed -e 's;https://www.meso-star.com/projects/stardis/;;g' \ 23 "${spk_readme}")" 24 25 printf '%s\n' "${readme}" \ 26 | sed -n '1,/^## Quick start/p' \ 27 | sed '$d' 28 29 printf '\n[]' 30 printf '(images/IR_animation_1080x720x32x128.gif)\n' 31 printf '> Illustration of the infrared rendering of the porous\n' 32 printf '> example supplied in the Starter Pack.\n' 33 printf '> The color map displays the temperature in Kelvin.\n' 34 printf '> The animation was produced by a simple\n' 35 printf '> rotation of the camera around the center of the foam.\n' 36 printf '> Each one of the 32 frames is a full image produced by\n' 37 printf '> a Stardis run.\n' 38 39 printf '## Downloads\n' 40 41 printf '<table class="list">\n' 42 printf ' <tr><th>Version</th><th>Archive</th></tr>\n' 43 44 archs=$(find downloads -name "Stardis-Starter-Pack*.tar.gz" | sort -r) 45 printf '%s\n' "${archs}" | \ 46 while read -r i ; do 47 version=$(echo "${i}" | sed "s/.*Starter-Pack-\(.*\)\.tar.gz/\1/g") 48 printf ' <tr>\n' 49 printf ' <td>%s</td>\n' "${version}" 50 printf ' <td>[<a href="%s">tarball</a>]\n' "${i}" 51 printf ' [<a href="%s.sig">pgp</a>]\n' "${i}" 52 printf ' </td>\n' 53 printf ' </tr>\n' 54 done 55 printf '</table>\n\n' 56 57 printf '%s\n' "${readme}" \ 58 | sed -n '/^## Quick start/,/^### The heatsink/p' \ 59 | sed '$d' 60 61 printf '%s\n' "${readme}" \ 62 | sed -n '/^### The heatsink/,/### The porous medium/p' \ 63 | sed '$d' 64 65 printf '\n[](images/heatsink.jpg)\n' 66 printf '\n[](images/heatsinkx50.jpg)\n' 67 printf '\n> Geometry of the heat sink test cases\n\n' 68 69 printf '%s\n' "${readme}" \ 70 | sed -n '/^### The porous medium/,/^### The city/p' \ 71 | sed '$d' 72 73 printf '\n[](images/foam.jpg)\n' 74 printf '> Geometry of the porous example.\n' 75 printf '> It is in fact a foam composed of a set of kelvin cells.\n' 76 77 printf '%s\n' "${readme}" \ 78 | sed -n '/^### The city/,/^## /p' \ 79 | sed '$d' 80 81 printf '\n[](images/city.jpg)\n' 82 printf '> Geometry of the "city" test case.\n' 83 printf '> Each building is fully described, from balconies and rooms\n' 84 printf '> to walls, foundations, floors and insulation.\n' 85 printf '\n' 86 printf '\n[]' 87 printf '(images/IR_city_640x480x1024_273-275.png)\n' 88 printf '> Infrared rendering of the “city” test case illustrating\n' 89 printf '> thermal bridges,\n' 90 printf '> particularly those coming from the uninsulated roofs.\n' 91 printf '> The color map displays the temperature in Kelvin.\n' 92 93 printf '%s\n' "${readme}" \ 94 | sed -n '/^## Release notes/,$p'