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 6144bae3c0ec7f27dc9d21ca470f3f73dfc60964
parent c63304c2210c085f4d7d3131735a6ea76e4977c0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 26 Aug 2025 12:42:37 +0200

Remove scripts used in the previous build system

Diffstat:
Dconfigure_targets.sh | 84-------------------------------------------------------------------------------
Dmeso-menu.sh | 530-------------------------------------------------------------------------------
2 files changed, 0 insertions(+), 614 deletions(-)

diff --git a/configure_targets.sh b/configure_targets.sh @@ -1,84 +0,0 @@ -#!/bin/sh -e - -# Copyright (C) 2017-2025 |Méso|Star> (contact@meso-star.com) -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -sig() -{ - for i in "$@"; do - printf "%s.sig: %s\n" "${i}" "${i}" - printf "\t@echo Signing %s\n" "${i}" - printf "\t@gpg --yes -a -o %s.sig --detach-sign %s\n" "${i}" "${i}" - done -} - -lint() -{ - dir=$(dirname "$0") - for i in "$@"; do - printf "%s.lint: %s %s/lint_html.sh\n" "${i}" "${i}" "${dir}" - printf "\t@echo Linting %s\n" "${i}" - printf "\t@PATH+=:%s sh lint_html.sh %s\n" "${dir}" "${i}" - done -} - -man() -{ - if [ $# -lt 2 ]; then - printf "Usage: %s <section> <version> [man...]" "$0" >&2 - exit 1 - fi - - section=$1 - version=$2 - dir=$(dirname "$0") - - shift 2 - for i in "$@"; do \ - man=${i#*share/}.html - printf "man: %s\n" "${man}" - printf "%s: %s %s/meso-menu.sh %s/convert_man.sh\n" \ - "${man}" "${i}" "${dir}" "${dir}" - printf "\t@echo \"Building %s\"\n" "${man}" - printf "\t@mkdir -p %s\n" "${man%/*}" - printf "\t@PATH+=:%s sh convert_man.sh %s %s %s %s\n" \ - "${dir}" "${section}" "${i}" "${man}" "${version}" - done -} - -mdoc() -{ - if [ $# -lt 1 ]; then - printf "Usage: %s <section> [mdoc ...]" "$0" >&2 - exit 1 - fi - - section=$1 - dir=$(dirname "$0") - - shift 1 - for i in "$@"; do \ - mdoc=${i#*share/}.html - printf "man: %s\n" "${mdoc}" - printf "%s: %s %s/meso-menu.sh %s/convert_mdoc.sh\n" \ - "${mdoc}" "${i}" "${dir}" "${dir}" - printf "\t@echo \"Building %s\"\n" "${mdoc}" - printf "\t@mkdir -p %s\n" "${mdoc%/*}" - printf "\t@PATH+=:%s sh convert_mdoc.sh %s %s %s\n" \ - "${dir}" "${section}" "${i}" "${mdoc}" - done -} - -"$@" diff --git a/meso-menu.sh b/meso-menu.sh @@ -1,530 +0,0 @@ -#!/bin/sh -e - -# Copyright (C) 2017-2025 |Méso|Star> (contact@meso-star.com) -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -export solstice_man_pages="\ - solstice 1 - solstice-input 5 - solstice-output 5 - solstice-receiver 5" - -export schiff_man_pages="\ - schiff 1 - schiff-geometry 5 - schiff-output 5" - -export stardis_man_pages="\ - stardis 1 - stardis-input 5 - stardis-output 5 - sgreen 1 - sgreen-input 5 - sgreen-output 5" - -print_home_sub_menu() -{ - root=$1 - name=$2 - lang=$3 - - echo "<div id=\"sub-menu\">" - if [ "${name}" = "About" ]; then - page="about" - echo " <span class=\"cur\">About</span>" - else - echo " <a href=\"${root}misc/about-fr.html\">About</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Legal" ]; then - page="legal" - echo " <span class=\"cur\">Legal notices</span>" - else - echo " <a href=\"${root}misc/legal-fr.html\">Legal notices</a>" - fi - - if [ "${name}" = "About" ] \ - || [ "${name}" = "Legal" ]; then - echo "<span style=\"float: right;\">" - if [ "${lang}" = "fr" ]; then - echo "<span class=\"cur\">fr</span>" - else - echo "<a href=\"${root}misc/${page}-fr.html\">fr</a>" - fi - echo "/" - if [ "${lang}" = "en" ]; then - echo "<span class=\"cur\">en</span>" - else - echo "<a href=\"${root}misc/${page}-en.html\">en</a>" - fi - echo "</span>" - fi - echo "</div>" -} - -print_art_sub_menu() -{ - root=$1 - name=$2 - - echo "<div id=\"sub-menu\">" - if [ "${name}" = "Overview" ]; then - echo " <span class=\"cur\">Overview</span>" - else - echo " <a href=\"${root}art/art.html\">Overview</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Kspectrum" ]; then - echo " <span class=\"cur\">Kspectrum</span>" - else - echo " <a href=\"${root}art/kspectrum.html\">Kspectrum</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Kdistribution" ]; then - echo " <span class=\"cur\">Kdistribution</span>" - else - echo " <a href=\"${root}art/kdistribution.html\">Kdistribution</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "HR_PPart" ]; then - echo " <span class=\"cur\">HR_PPart</span>" - else - echo " <a href=\"${root}art/hr_ppart.html\">HR_PPart</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "PPart_LW" ]; then - echo " <span class=\"cur\">PPart_LW</span>" - else - echo " <a href=\"${root}art/ppart_lw.html\">PPart_LW</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "PPart_SW" ]; then - echo " <span class=\"cur\">PPart_SW</span>" - else - echo " <a href=\"${root}art/ppart_sw.html\">PPart_SW</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Karine" ]; then - echo " <span class=\"cur\">Karine</span>" - else - echo " <a href=\"${root}art/karine.html\">Karine</a>" - fi - echo "</div>" -} - -print_htrdr_sub_menu() -{ - root=$1 - name=$2 - - echo "<div id=\"sub-menu\">" - if [ "${name}" = "Overview" ]; then - echo " <span class=\"cur\">Overview</span>" - else - echo " <a href=\"${root}htrdr/htrdr.html\">Overview</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Documentations" ]; then - echo " <span class=\"cur\">Manual pages</span>" - else - echo " <a href=\"${root}htrdr/htrdr-docs.html\">Manual pages</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Atmosphere-Starter-Pack" ]; then - echo " <span class=\"cur\">Atmosphere</span>" - else - echo " <a href=\"${root}htrdr/htrdr-atmosphere-spk.html\">Atmosphere</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Combustion-Starter-Pack" ]; then - echo " <span class=\"cur\">Combustion</span>" - else - echo " <a href=\"${root}htrdr/htrdr-combustion-spk.html\">Combustion</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Planets-Starter-Pack" ]; then - echo " <span class=\"cur\">Planets</span>" - else - echo " <a href=\"${root}htrdr/htrdr-planets-spk.html\">Planets</a>" - fi - echo " &emsp13;.&emsp13;" - echo " <a href=\"https://gitlab.com/meso-star/htrdr\">Git</a>" - echo "</div>" -} - - -print_schiff_sub_menu() -{ - root=$1 - name=$2 - - echo "<div id=\"sub-menu\">" - if [ "${name}" = "Overview" ]; then - echo " <span class=\"cur\">Overview</span>" - else - echo " <a href=\"${root}schiff/schiff.html\">Overview</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Documentations" ]; then - echo " <span class=\"cur\">Manual pages</span>" - else - echo " <a href=\"${root}schiff/schiff-docs.html\">Manual pages</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Downloads" ]; then - echo " <span class=\"cur\">Downloads</span>" - else - echo " <a href=\"${root}schiff/schiff-downloads.html\">Downloads</a>" - fi - echo " &emsp13;.&emsp13;" - echo " <a href=\"https://gitlab.com/meso-star/schiff\">Git</a>" - echo "</div>" -} - -print_solstice_sub_menu() -{ - root=$1 - name=$2 - - echo "<div id=\"sub-menu\">" - if [ "${name}" = "Overview" ]; then - echo " <span class=\"cur\">Overview</span>" - else - echo " <a href=\"${root}solstice/solstice.html\">Overview</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Documentations" ]; then - echo " <span class=\"cur\">Manual pages</span>" - else - echo " <a href=\"${root}solstice/solstice-docs.html\">Manual pages</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Downloads" ]; then - echo " <span class=\"cur\">Downloads</span>" - else - echo " <a href=\"${root}solstice/solstice-downloads.html\">Downloads</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Resources" ]; then - echo " <span class=\"cur\">Additional resources</span>" - else - echo " <a href=\"${root}solstice/solstice-resources.html\">Additional resources</a>" - fi - echo " &emsp13;.&emsp13;" - echo " <a href=\"https://gitlab.com/meso-star/solstice\">Git</a>" - echo "</div>" -} - -print_stardis_sub_menu() -{ - root=$1 - name=$2 - lang=$3 - - echo "<div id=\"sub-menu\">" - if [ "${name}" = "Overview" ]; then - echo " <span class=\"cur\">Overview</span>" - else - echo " <a href=\"${root}stardis/stardis.html\">Overview</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Validation" ]; then - echo " <span class=\"cur\">Validation</span>" - else - echo " <a href=\"${root}stardis/validation.html\">Validation</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Consortium" ]; then - echo " <span class=\"cur\">Consortium</span>" - else - echo " <a href=\"${root}stardis/consortium-fr.html\">Consortium</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Documentations" ]; then - echo " <span class=\"cur\">Manual pages</span>" - else - echo " <a href=\"${root}stardis/stardis-docs.html\">Manual pages</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Starter-Pack" ]; then - echo " <span class=\"cur\">Starter Pack</span>" - else - echo " <a href=${root}stardis/starter-pack.html>Starter Pack</a>" - fi - echo " &emsp13;.&emsp13;" - if [ "${name}" = "Release notes" ]; then - echo " <span class=\"cur\">Release notes</span>" - else - echo " <a href=\"${root}stardis/release-notes.html\">Release notes</a>" - fi - - if [ "${name}" = "Consortium" ]; then - echo "<span style=\"float: right;\">" - if [ "${lang}" = "fr" ]; then - echo "<span class=\"cur\">fr</span>" - else - echo "<a href=\"${root}stardis/consortium-fr.html\">fr</a>" - fi - echo "/" - if [ "${lang}" = "en" ]; then - echo "<span class=\"cur\">en</span>" - else - echo "<a href=\"${root}stardis/consortium-en.html\">en</a>" - fi - echo "</span>" - fi - echo "</div>" -} - -print_star_engine_sub_menu() -{ - root=$1 - name=$2 - components="\ - Star-Geom Geometric&nbsp;data - Star-2D Star-2D - Star-3D Star-3D - Star-SP Star-SamPling - Star-SF Star-ScatteringFunctions - Star-UVM Star-UVM - Star-VX Star-VoXel" - - echo " <div id=\"sub-menu\">" - echo " <ul>" - if [ "${name}" = "Overview" ]; then - echo " <li class=\"cur\">Overview</li>" - else - echo " <li><a href=\"${root}star-engine/star-engine.html\">Overview</a></li>" - fi - echo " <li>Components" - echo " <ul class=\"lvl2\">" - - printf "%s\n" "${components}" | \ - while read -r i; do - page=$(printf "%s" "${i}" | awk '{print $1}') - section=$(printf "%s" "${i}" | awk '{print $2}') - if [ "${name}" = "${page}" ]; then - echo " <li class=\"cur\">${section}</li>" - else - page_low=$(echo "${page}" | tr '[:upper:]' '[:lower:]') - printf " <li><a href=\"%sstar-engine/%s.html\">%s</a></li>" \ - "${root}" "${page_low}" "${section}" - fi - done - - echo " </ul>" - echo " </li>" - if [ "${name}" = "Downloads" ]; then - echo " <li class=\"cur\">Downloads</li>" - else - echo " <li><a href=\"${root}star-engine/star-engine-downloads.html\">Downloads</a></li>" - fi - echo " <li><a href=\"https://gitlab.com/meso-star/star-engine\">Repository</a></li>" - echo " </ul>" - echo " <div id=\"info\">" - echo " <p>Star-Engine was funded by the <a href=\"https://www.laregion.fr\">Occitanie" - echo " region</a> (CLE-EDSTAR) from 2016 to 2018. |Méso|Star&gt; was partner of" - echo " the project with the <a href=\"http://www.laplace.univ-tlse.fr\">LAPLACE</a> and <a" - echo " href=\"https://www.imt-mines-albi.fr/en/rapsodee-research-centre\">RAPSODEE</a>." - echo " </p>" - echo " </div>" - echo " </div>" -} - -print_header() -{ - usage="print_header -s section -n name -r root [-l lang]" - section=; name=; lang=; root= - while getopts s:n:l:r: opt; do - case "${opt}" in - s) section=${OPTARG};; - n) name=${OPTARG};; - l) lang=${OPTARG};; - r) root=${OPTARG};; - ?) echo "${usage}" >& 2 - exit 1;; - *) echo "Unreachable code" >& 2;; - esac - done - - if [ -z "${section}" ] || [ -z "${name}" ] || [ -z "${root}" ]; then - echo "${usage}" >& 2 - exit 1 - fi - - [ -z "${lang}" ] && lang="en" - - echo "<!DOCTYPE html>" - echo "" - echo "<html lang=\"${lang}\">" - echo "<head>" - echo " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" - echo " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">" - echo " <title>|M|S&gt; ${section}</title>" - echo " <link rel=\"stylesheet\" title=\"default\" href=\"${root}meso.css\">" - echo '</head>' - echo "" - echo "<body>" - - echo "<div id=\"menu\">" - if [ "${section}" = "Home" ]; then - echo " Home" - else - echo " <a href=\"${root}misc/about-fr.html\">Home</a>" - fi - echo " &emsp13;|&emsp13;" - if [ "${section}" = "ART" ]; then - echo " A.R.T." - else - echo " <a href=\"${root}art/art.html\">A.R.T.</a>" - fi - echo " &emsp13;|&emsp13;" - if [ "${section}" = "htrdr" ]; then - echo " <code style=\"color: black; font-variant: none;\">htrdr</code>" - else - echo " <code style=\"font-variant:none;\"><a href=\"${root}htrdr/htrdr.html\">htrdr</a></code>" - fi - echo " &emsp13;|&emsp13;" - if [ "${section}" = "Schiff" ]; then - echo " Schiff" - else - echo " <a href=\"${root}schiff/schiff.html\">Schiff</a>" - fi - echo " &emsp13;|&emsp13;" - if [ "${section}" = "Solstice" ]; then - echo " Solstice" - else - echo " <a href=\"${root}solstice/solstice.html\">Solstice</a>" - fi - echo " &emsp13;|&emsp13;" - if [ "${section}" = "Stardis" ]; then - echo " Stardis" - else - echo " <a href=\"${root}stardis/stardis.html\">Stardis</a>" - fi - echo "</div>" - echo "<hr>" - case "${section}" in - Home) print_home_sub_menu "${root}" "${name}" "${lang}";; - ART) print_art_sub_menu "${root}" "${name}" ;; - htrdr) print_htrdr_sub_menu "${root}" "${name}" ;; - Schiff) print_schiff_sub_menu "${root}" "${name}" ;; - Solstice) print_solstice_sub_menu "${root}" "${name}" ;; - Stardis) print_stardis_sub_menu "${root}" "${name}" "${lang}";; - *) ;; - esac - echo "<div id=\"content\">" -} - -print_footer() -{ - echo "</div>" # content - echo "<div id=\"footer\">" - echo " - <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nd/4.0/\"> - <img alt=\"Creative Commons License\" style=\"border-width:0; float: left; margin-right: 1em\" - src=\"https://i.creativecommons.org/l/by-nd/4.0/88x31.png\" /> - </a>" - echo "Copyright &#169; 2015-2025 <a href=\"mailto:contact@meso-star.com\">|Méso|Star&gt;</a>" - echo "<br>" - echo "This page is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nd/4.0/\">Creative Commons Attribution-NoDerivatives 4.0 International License</a>." - echo "</div>" - echo "</body>" -} - -print_downloads() -{ - prefix=$1 - if [ $# -lt 2 ]; then - windows=1 - linux=1 - else - windows=0 - linux=0 - case "$2" in - Windows) windows=1;; - Linux) linux=1;; - *) ;; - esac - fi - - echo "<table class=\"list\">" - echo " <tr>" - echo " <th>Version</th>" - [ ! "${linux}" -eq 0 ] && echo " <th>GNU/Linux 64-bits</th>" - [ ! "${windows}" -eq 0 ] && echo " <th>Windows 64-bits</th>" - echo " <th>Sources</th>" - echo " </tr>" - - find downloads/ -regex ".*/${prefix}-[0-9]+.[0-9]+.[0-9]+\(-r[0-9]+\)?-[^\(Sources\)].*tar.gz" | sort -Vr | \ - while read -r arch; do - version=$(echo "${arch}" | sed "s/.*${prefix}-\([0-9]\+\.[0-9]\+\.[0-9]\+\(-r[0-9]\+\)\{0,1\}\)-.*/\1/g") - dl_files="" - - case "${dl_files}" in - *Sources*) continue;; - *) ;; - esac - - if [ ! "${linux}" -eq 0 ]; then - dl_files="${dl_files} downloads/${prefix}-${version}-GNU-Linux64.tar.gz" - fi - if [ ! "${windows}" -eq 0 ]; then - dl_files="${dl_files} downloads/${prefix}-${version}-Win64.zip" - fi - if [ -f "downloads/${prefix}-${version}-Sources.zip" ]; then - dl_files="${dl_files} downloads/${prefix}-${version}-Sources.zip" - elif [ -f "downloads/${prefix}-${version}-Source.zip" ]; then - dl_files="${dl_files} downloads/${prefix}-${version}-Source.zip" - elif [ -f "downloads/${prefix}-${version}-Sources.tar.gz" ]; then - dl_files="${dl_files} downloads/${prefix}-${version}-Sources.tar.gz" - else - dl_files="${dl_files} downloads/${prefix}-${version}-Source.tar.gz" - fi - - echo " <tr>" - echo " <td>${version}</td>" - for i in $(printf "%s" "${dl_files}"); do - dl_file="${i}" - - echo " <td>" - if [ -f "${dl_file}" ]; then - printf " [<a href=\"%s\">" "${dl_file}" - [ "${dl_file#*tar.gz}" != "${dl_file}" ] && printf "tarball" || printf "zip" - echo "</a>]" - fi - if [ -f "${dl_file}.sig" ]; then - echo " [<a href=\"${dl_file}.sig\">pgp</a>]" - fi - echo " </td>" - done - echo " </tr>" - done - - echo "</table>" -} - -set +e -if hash markdown 2> /dev/null; then - export markdown=markdown -elif hash markdown2 2> /dev/null; then - export markdown=markdown2 -elif hash markdown_py 2> /dev/null; then - export markdown=markdown_py -else - >&2 echo "Cannot find the markdown[2|_py] command" - exit 1 -fi -set -e