From 8b98a6b3fae40487ac529a7118865df6a71159ee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Jul 2017 17:43:09 +0200 Subject: Implement detection of ignorable changes (whitespaces, comments) --- build2/filesystem.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'build2/filesystem.cxx') diff --git a/build2/filesystem.cxx b/build2/filesystem.cxx index 9d9b3b6..eefaf99 100644 --- a/build2/filesystem.cxx +++ b/build2/filesystem.cxx @@ -11,6 +11,22 @@ using namespace butl; namespace build2 { + bool + touch (const path& p, bool create, uint16_t v) + { + if (verb >= v) + text << "touch " << p; + + try + { + return touch_file (p, create); + } + catch (const system_error& e) + { + fail << "unable to touch file " << p << ": " << e << endf; + } + } + fs_status mkdir (const dir_path& d, uint16_t v) { -- cgit v1.1