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.txx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build/context.txx') diff --git a/build/context.txx b/build/context.txx index 286d460..b9004e0 100644 --- a/build/context.txx +++ b/build/context.txx @@ -9,9 +9,11 @@ namespace build { template - fs_status + fs_status rmfile (const path& f, const T& t) { + using namespace butl; + // We don't want to print the command if we couldn't remove the // file because it does not exist (just like we don't print the // update command if the file is up to date). This makes the @@ -45,9 +47,11 @@ namespace build } template - fs_status + fs_status rmdir (const dir_path& d, const T& t) { + using namespace butl; + bool w (d == work); // Don't try to remove working directory. rmdir_status rs; -- cgit v1.1