stardis-spk

Scripts and datasets for running Stardis simulations
git clone git://git.meso-star.fr/stardis-spk.git
Log | Files | Refs | README | LICENSE

commit 3cbfd298491eb3653c05c1c945735f8bc455b482
parent a4b4be8cd99a32ab3744d149cfad198998493010
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  9 Apr 2026 10:34:43 +0200

Add a POSIX Makefile

It automates the syntax checking of shell scripts and the creation of
the distribution archive.

Diffstat:
M.gitattributes | 2+-
M.gitignore | 8+++++---
AMakefile | 43+++++++++++++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+), 4 deletions(-)

diff --git a/.gitattributes b/.gitattributes @@ -12,4 +12,4 @@ .gitattributes export-ignore .gitignore export-ignore -.gitfat export-ignore +Makefile export-ignore diff --git a/.gitignore b/.gitignore @@ -1,5 +1,7 @@ -*~ +*.gp +*.ht +*.ppm *.sw[po] +*.tar.gz *.vtk -*.ppm -*.ht +*~ diff --git a/Makefile b/Makefile @@ -0,0 +1,43 @@ +# Copyright (C) 2021, 2022, 2026 |Meso|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/>. + +.POSIX: + +VERSION = 0.2.1 +NAME = Stardis-StarterPack-$(VERSION) +ARCHIVE = $(NAME).tar.gz + +SCRIPTS=\ + city/run_IR_rendering.sh\ + cube/run_dump_path.sh\ + cube/run_green_evaluation.sh\ + cube/run_probe_computation.sh\ + heatsink/run_medium_computation.sh\ + heatsink/run_medium_computation_multiple.sh\ + porous/run_IR_rendering.sh + +default: # Nothing to do + +dist: + git archive -v --prefix="$(NAME)/" -o "$(ARCHIVE)" master + +distclean: + rm -f "$(ARCHIVE)" + +lint: + @printf '%s\n' $(SCRIPTS) | while read -r i; do \ + printf 'linting %s\n' "$${i}"; \ + shellcheck -o all "$${i}"; \ + done