summaryrefslogtreecommitdiff
path: root/templates/modules/modulefile.dk
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-03-23 23:16:37 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-06-24 16:38:36 -0700
commitc4c1d37fcdeb17680a85af25431314dae4fa3584 (patch)
tree8abe5909edf418ef0810a53771eb7871b6050d19 /templates/modules/modulefile.dk
parent6517dabbce06a7a62154e00ecea427116d9ef801 (diff)
downloadspack-c4c1d37fcdeb17680a85af25431314dae4fa3584.tar.gz
spack-c4c1d37fcdeb17680a85af25431314dae4fa3584.tar.bz2
spack-c4c1d37fcdeb17680a85af25431314dae4fa3584.tar.xz
spack-c4c1d37fcdeb17680a85af25431314dae4fa3584.zip
refactor: move templates from root to share/spack
- This complies with the unix directory hierarchy standard (which Spack attempts to follow) - Also unclutters the repo root directory.
Diffstat (limited to 'templates/modules/modulefile.dk')
-rw-r--r--templates/modules/modulefile.dk31
1 files changed, 0 insertions, 31 deletions
diff --git a/templates/modules/modulefile.dk b/templates/modules/modulefile.dk
deleted file mode 100644
index c3f6d2dce1..0000000000
--- a/templates/modules/modulefile.dk
+++ /dev/null
@@ -1,31 +0,0 @@
-{% block header %}
-{% if category %}
-#c {{ category }}
-{% endif %}
-{% if short_description %}
-#d {{ short_description }}
-{% endif %}
-{% if long_description %}
-{{ long_description| textwrap(72)| prepend_to_line('#h ')| join() }}
-{% endif %}
-{% endblock %}
-
-{% block autoloads %}
-{% for module in autoload %}
-dk_op {{ module }}
-{% endfor %}
-{% endblock %}
-
-{% block environment %}
-{% for command_name, cmd in environment_modifications %}
-{% if command_name == 'PrependPath' %}
-dk_alter {{ cmd.name }} {{ cmd.value }}
-{% endif %}
-{% if command_name == 'RemovePath' %}
-dk_unalter {{ cmd.name }} {{ cmd.value }}
-{% endif %}
-{% if command_name == 'SetEnv' %}
-dk_setenv {{ cmd.name }} {{ cmd.value }}
-{% endif %}
-{% endfor %}
-{% endblock %}