aboutsummaryrefslogtreecommitdiff
path: root/build/context.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 14:41:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 14:41:45 +0200
commit63e7a4a77cb8ceed7b42561fe3202b0b48d86db6 (patch)
treebde5a79522225f32ec188ba46d0834486c30f00f /build/context.txx
parent28c82c861e38fe05a25e916563e0551ed8fce91e (diff)
Move path and filesystem from build2 to libbutl
Diffstat (limited to 'build/context.txx')
-rw-r--r--build/context.txx8
1 files changed, 6 insertions, 2 deletions
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 <typename T>
- fs_status<rmfile_status>
+ fs_status<butl::rmfile_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 <typename T>
- fs_status<rmdir_status>
+ fs_status<butl::rmdir_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;