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