aboutsummaryrefslogtreecommitdiff
path: root/build2/version/utility.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/version/utility.hxx')
-rw-r--r--build2/version/utility.hxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/build2/version/utility.hxx b/build2/version/utility.hxx
new file mode 100644
index 0000000..c373f6c
--- /dev/null
+++ b/build2/version/utility.hxx
@@ -0,0 +1,25 @@
+// file : build2/version/utility.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BUILD2_VERSION_UTILITY_HXX
+#define BUILD2_VERSION_UTILITY_HXX
+
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
+
+#include <build2/filesystem.hxx>
+
+namespace build2
+{
+ namespace version
+ {
+ // Re-serialize the manifest fixing up the version. Note that this will
+ // not preserve comments. Probably acceptable for snapshots.
+ //
+ auto_rmfile
+ fixup_manifest (const path& in, path out, const standard_version&);
+ }
+}
+
+#endif // BUILD2_VERSION_UTILITY_HXX