htrdr.in (1606B)
1 #!/bin/sh 2 3 # Copyright (C) 2018-2019, 2022-2025 Centre National de la Recherche Scientifique 4 # Copyright (C) 2020-2022 Institut Mines Télécom Albi-Carmaux 5 # Copyright (C) 2022-2025 Institut Pierre-Simon Laplace 6 # Copyright (C) 2022-2025 Institut de Physique du Globe de Paris 7 # Copyright (C) 2018-2025 |Méso|Star> (contact@meso-star.com) 8 # Copyright (C) 2022-2025 Observatoire de Paris 9 # Copyright (C) 2022-2025 Université de Reims Champagne-Ardenne 10 # Copyright (C) 2022-2025 Université de Versaille Saint-Quentin 11 # Copyright (C) 2018-2019, 2022-2025 Université Paul Sabatier 12 # 13 # This program is free software: you can redistribute it and/or modify 14 # it under the terms of the GNU General Public License as published by 15 # the Free Software Foundation, either version 3 of the License, or 16 # (at your option) any later version. 17 # 18 # This program is distributed in the hope that it will be useful, 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 # GNU General Public License for more details. 22 # 23 # You should have received a copy of the GNU General Public License 24 # along with this program. If not, see <http://www.gnu.org/licenses/>. 25 26 set -e 27 28 usage() 29 { 30 printf 'usage: %s [-hv] [mode [options ...]]\n' "${0##*/}" 31 } 32 33 if [ $# -lt 1 ]; then 34 >&2 usage 35 exit 1 36 fi 37 38 opt="$1" 39 shift 1 40 41 case "${opt}" in 42 "atmosphere") htrdr-atmosphere "$@" ;; 43 "combustion") htrdr-combustion "$@" ;; 44 "planets") htrdr-planets "$@" ;; 45 "-h") usage ;; 46 "-v") printf '%s version @MAJOR@.@MINOR@.@PATCH@\n' "${0##*/}" ;; 47 *) >&2 usage ;; 48 esac