summaryrefslogtreecommitdiff
path: root/src/file/runfile.cil
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/runfile.cil')
-rw-r--r--src/file/runfile.cil47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/file/runfile.cil b/src/file/runfile.cil
new file mode 100644
index 0000000..02bce18
--- /dev/null
+++ b/src/file/runfile.cil
@@ -0,0 +1,47 @@
+;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
+;; SPDX-License-Identifier: Unlicense
+
+(block run
+
+ (blockinherit .file.run.template))
+
+(in file
+
+ (block run
+
+ (macro type ((type ARG1))
+ (typeattributeset typeattr ARG1))
+
+ (blockinherit file.all_macro_template_all_files)
+ (blockinherit file.all_macro_template_blk_files)
+ (blockinherit file.all_macro_template_chr_files)
+ (blockinherit file.all_macro_template_dirs)
+ (blockinherit file.all_macro_template_fifo_files)
+ (blockinherit file.all_macro_template_files)
+ (blockinherit file.all_macro_template_lnk_files)
+ (blockinherit file.all_macro_template_sock_files)
+
+ (typeattribute typeattr)
+
+ (call file.type (typeattr))
+
+ (call .tmp.associate_fs (typeattr))
+
+ (block base_template
+
+ (blockabstract base_template)
+
+ (blockinherit .file.base_template)
+
+ (call .file.run.type (file)))
+
+ (block template
+
+ (blockabstract template)
+
+ (blockinherit .file.macro_template_dirs)
+ (blockinherit .file.macro_template_fifo_files)
+ (blockinherit .file.macro_template_files)
+ (blockinherit .file.macro_template_lnk_files)
+ (blockinherit .file.macro_template_sock_files)
+ (blockinherit .file.run.base_template))))