meso-web

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

starter-pack.sh (3403B)


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