diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-28 08:38:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-28 08:38:40 +0200 |
commit | 749cd532f72108b26a78cd2f0012e6abd72b3ce8 (patch) | |
tree | df9f424dba608536cf77c3d188a53df89a4b6440 /bpkg/manifest-utility | |
parent | c602595c08efae5ff1b05e0b8c7d4ab430f8f033 (diff) |
Factory common code for version, repository location parsing
Diffstat (limited to 'bpkg/manifest-utility')
-rw-r--r-- | bpkg/manifest-utility | 26 |
1 files changed, 26 insertions, 0 deletions
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 <bpkg/manifest> + +#include <bpkg/types> +#include <bpkg/utility> + +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 |