summaryrefslogtreecommitdiff
path: root/support/arara/scripts/rules/arara-rule-mkdir.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'support/arara/scripts/rules/arara-rule-mkdir.yaml')
-rw-r--r--support/arara/scripts/rules/arara-rule-mkdir.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/support/arara/scripts/rules/arara-rule-mkdir.yaml b/support/arara/scripts/rules/arara-rule-mkdir.yaml
new file mode 100644
index 0000000000..3798a8f792
--- /dev/null
+++ b/support/arara/scripts/rules/arara-rule-mkdir.yaml
@@ -0,0 +1,25 @@
+!config
+# Arara, the cool TeX automation tool
+# Copyright (c) 2023, Island of TeX
+# All rights reserved.
+#
+# This rule is part of arara.
+identifier: mkdir
+name: Create subdirectory
+authors:
+- hackbaellchen
+- Island of TeX
+commands:
+- name: Create subdirectory
+ command: >
+ @{
+ toFile(target[0]).createDirectories();
+ return true;
+ }
+arguments:
+- identifier: target
+ flag: >
+ @{
+ return parameters.target;
+ }
+ required: true