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.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/filesystem.hxx') diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx index 79633af..4ef4caf 100644 --- a/build2/filesystem.hxx +++ b/build2/filesystem.hxx @@ -30,6 +30,14 @@ namespace build2 explicit operator bool () const {return v == T::success;} }; + // Set the file access and modification times to the current time printing + // the standard diagnostics starting from the specified verbosity level. If + // the file does not exist and create is true, create it and fail otherwise. + // Return true if the file was created and false otherwise. + // + bool + touch (const path&, bool create, uint16_t verbosity = 1); + // Create the directory and print the standard diagnostics starting from // the specified verbosity level. // -- cgit v1.1