From 63e7a4a77cb8ceed7b42561fe3202b0b48d86db6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 14:41:45 +0200 Subject: Move path and filesystem from build2 to libbutl --- build/context | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'build/context') diff --git a/build/context b/build/context index 3a99014..dc865d2 100644 --- a/build/context +++ b/build/context @@ -8,10 +8,11 @@ #include #include -#include +#include + +#include #include #include -#include namespace build { @@ -37,7 +38,7 @@ namespace build // The dual interface wrapper for the {mk,rm}{file,dir}() functions // below that allows you to use it as a true/false return or a more - // detailed enum from + // detailed enum from // template struct fs_status @@ -53,7 +54,7 @@ namespace build // directory will exist in the majority of case and performance is // important. See the fsdir{} rule for details. // - fs_status + fs_status mkdir (const dir_path&); // Remove the file and print the standard diagnostics. The second @@ -62,19 +63,19 @@ namespace build // being printed. // template - fs_status + fs_status rmfile (const path&, const T& target); - inline fs_status + inline fs_status rmfile (const path& f) {return rmfile (f, f);} // Similar to rmfile() but for directories. // template - fs_status + fs_status rmdir (const dir_path&, const T& target); - inline fs_status + inline fs_status rmdir (const dir_path& d) {return rmdir (d, d);} // Return the src/out directory corresponding to the given out/src. The -- cgit v1.1