From df8c9b4b318ed043030d076ee58393bf5d704f80 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Mon, 13 Sep 2021 16:45:55 +0200 Subject: Add workflow to create source releases (#563) - add release workflow to generate source archives - add workflow and script to automatically create single source file --- ci/single-file-gfortran.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 ci/single-file-gfortran.sh (limited to 'ci/single-file-gfortran.sh') diff --git a/ci/single-file-gfortran.sh b/ci/single-file-gfortran.sh new file mode 100755 index 0000000..904c7f8 --- /dev/null +++ b/ci/single-file-gfortran.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +output="${OUTPUT:-fpm-single-file.F90}" + +args=("$@") +file=$(printf "%s\n" "${args[@]}" | grep -P '^.+\.[fF]90$') +if [ $? = 0 ]; then + echo " + Appending source file '$file' to '${output}'" + cat $file >> "${output}" +fi +exec gfortran "${args[@]}" -- cgit v1.2.3