From 9c0dc1f4957420688cf2c1afe79fa2f53f2a6abf Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 5 Sep 2018 00:00:14 +0300 Subject: Create .buildignore file in testscript root working directory --- build2/filesystem.hxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'build2/filesystem.hxx') diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx index fe98263..3bcd807 100644 --- a/build2/filesystem.hxx +++ b/build2/filesystem.hxx @@ -128,6 +128,28 @@ namespace build2 // bool empty (const dir_path&); + + // Directories containing .buildignore file are automatically ignored by + // recursive names patterns. For now the file is just a marker and its + // contents don't matter. + // + extern const path buildignore; // .buildignore + + // Create a directory containing an empty .buildignore file. + // + fs_status + mkdir_buildignore (const dir_path&, uint16_t verbosity = 1); + + // Return true if the directory is empty or only contains the .buildignore + // file. Fail if the directory doesn't exist. + // + bool + empty_buildignore (const dir_path&); + + // Remove a directory if it is empty or only contains the .buildignore file. + // + fs_status + rmdir_buildignore (const dir_path&, uint16_t verbosity = 1); } #include -- cgit v1.1