From f8ea0b937afce76d0d61e8518325a61f46e90265 Mon Sep 17 00:00:00 2001
From: Arne Hilmann <arne.hilmann@codecentric.de>
Date: Fri, 15 Jul 2022 01:07:33 +0200
Subject: [PATCH] ensure .tools folder is present

---
 build.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build.rs b/build.rs
index d601070..b2619c2 100644
--- a/build.rs
+++ b/build.rs
@@ -8,8 +8,10 @@ fn main() -> std::io::Result<()> {
     let source = format!("src/docroot/pandoc-{target}");
     let target = "src/docroot/main/.tools/pandoc";
 
-    print!("copying pandoc {source} to {target}\n");
+    print!("creating target folder\n");
+    fs::create_dir_all("src/docroot/main/.tools/")?;
 
+    print!("copying pandoc {source} to {target}\n");
     fs::copy(source, target)?;
     Ok(())
 }
\ No newline at end of file
-- 
GitLab