From 1845141809aa91b03718066a6f46863885a6a887 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Mar 2019 09:06:37 +0200 Subject: Add support for alternative build file/directory naming scheme Now the build/*.build, buildfile, and .buildignore filesystem entries in a project can alternatively (but consistently) be called build2/*.build2, build2file, and .build2ignore. See a note at the beginning of the Project Structure section in the manual for details (motivation, restrictions, etc). --- build2/filesystem.hxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'build2/filesystem.hxx') diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx index b575c4a..ccc5a73 100644 --- a/build2/filesystem.hxx +++ b/build2/filesystem.hxx @@ -129,27 +129,25 @@ 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_file; // .buildignore + // Directories containing .buildignore (or .build2ignore in the alternative + // naming scheme) file are automatically ignored by recursive name patterns. + // For now the file is just a marker and its contents don't matter. // Create a directory containing an empty .buildignore file. // fs_status - mkdir_buildignore (const dir_path&, uint16_t verbosity = 1); + mkdir_buildignore (const dir_path&, const 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&); + empty_buildignore (const dir_path&, const 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); + rmdir_buildignore (const dir_path&, const path&, uint16_t verbosity = 1); } #include -- cgit v1.1