summaryrefslogtreecommitdiff
path: root/templates/bash/template.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-06-07 10:55:19 +0300
committerLars Wirzenius <liw@liw.fi>2020-06-07 10:55:19 +0300
commit86a9f568c410bed2f4503a2e8d43e2dc2a0d70b8 (patch)
treead676ee9e353131e7d0a04ef07c3ce83cfe8cb95 /templates/bash/template.sh
parentbba22e1f86967feebf94ebac327f7489c1029afd (diff)
downloadsubplot-86a9f568c410bed2f4503a2e8d43e2dc2a0d70b8.tar.gz
feat: supply source file name for functions files
The Python and Bash templates now insert the name of the source files from where the function codes come from.
Diffstat (limited to 'templates/bash/template.sh')
-rw-r--r--templates/bash/template.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/bash/template.sh b/templates/bash/template.sh
index 89958d4..1da4f5b 100644
--- a/templates/bash/template.sh
+++ b/templates/bash/template.sh
@@ -5,7 +5,12 @@ set -eu -o pipefail
#############################################################################
# Functions that implement steps.
-{{ functions }}
+{% for func in functions %}
+#----------------------------------------------------------------------------
+# This code comes from: {{ func.source }}
+
+{{ func.code }}
+{% endfor %}
#############################################################################