blob: ab413dcd56a10b46a15b24c220327c47b94f8ff7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// 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
{
// Extract name and version components from <name>[/<version>].
//
string
parse_package_name (const char*);
version
parse_package_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
|