From 749cd532f72108b26a78cd2f0012e6abd72b3ce8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Sep 2015 08:38:40 +0200 Subject: Factory common code for version, repository location parsing --- bpkg/manifest-utility | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 bpkg/manifest-utility (limited to 'bpkg/manifest-utility') diff --git a/bpkg/manifest-utility b/bpkg/manifest-utility new file mode 100644 index 0000000..f9766c7 --- /dev/null +++ b/bpkg/manifest-utility @@ -0,0 +1,26 @@ +// file : bpkg/manifest-utility -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_MANIFEST_UTILITY +#define BPKG_MANIFEST_UTILITY + +#include + +#include +#include + +namespace bpkg +{ + version + parse_version (const char*); + + // First use the passed location as is. If the result is relative, + // then assume this is a relative path to the repository directory + // and complete it based on the current working directory. + // + repository_location + parse_location (const char*); +} + +#endif // BPKG_MANIFEST_UTILITY -- cgit v1.1