-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMalterlib_Core_RepositoryCore.MHeader
More file actions
66 lines (57 loc) · 1.72 KB
/
Malterlib_Core_RepositoryCore.MHeader
File metadata and controls
66 lines (57 loc) · 1.72 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright © Unbroken AB
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Type
{
CRemotePrefix: {
Name: string
, UrlPrefix: string
, Write: bool = false
}
CRemote: {
Name: string
, URL: string
, Write: bool = false
}
}
Property
{
f_MalterlibRemotePrefixesTemplate function(type(CRemotePrefix) _Element) [type(CRemote)] = []
f_MalterlibRemotePrefixesTemplate =+ {Name: _Element<Name>, URL: `@(_Element<UrlPrefix>)/@(MalterlibRepoName)`, Write: _Element<Write>}
{
!_Element undefined
}
}
Property
{
MalterlibUseGitRepo: bool = true
MalterlibRemotePrefixes: [type(CRemotePrefix)]? // User(Repository)= += [{Name: "remoteexample", UrlPrefix: "https://gitlab.example.com/Malterlib"}]: Specify extra Malterlib remotes
MalterlibUpstreamAccess: bool = false // User(Repository)=true: Set to true if you have access to https://github.com/Malterlib
MalterlibUpstreamAccess undefined
{
!!MalterlibUpstreamAccess undefined
}
MalterlibUpstreamWriteAccess: bool = false // User(Repository)=true: Set to true if you have write access to https://github.com/Malterlib
}
%Repository "Core"
{
!MalterlibUseGitRepo false
Property.MalterlibRepoName "Malterlib_Core.git"
Repository
{
Type "Malterlib"
ConfigFile `@("../.."->MakeAbsolute())/@(Repository.Type).MRepo`
StateFile `@("../.."->MakeAbsolute())/@(Repository.Type).MRepoState`
Remotes =+ MalterlibRemotePrefixes->ForEach(&f_MalterlibRemotePrefixesTemplate)
{
!MalterlibRemotePrefixes undefined
}
Remotes =+ {Name: "malterlib", URL: `https://github.com/Malterlib/Malterlib_Core.git`, Write: MalterlibUpstreamWriteAccess}
{
&
{
MalterlibUpstreamAccess true
!Repository.URL `https://github.com/Malterlib/@(MalterlibRepoName)`
}
}
}
}