|
|
|
|
14
|
warn ""
|
14
|
warn ""
|
15
|
warn "Options:"
|
15
|
warn "Options:"
|
16
|
warn ""
|
16
|
warn ""
|
|
|
17
|
+ warn " -b BRN build from branch BRN (default: last tag)"
|
17
|
warn " -n dry mode, don't do anything (just show"
|
18
|
warn " -n dry mode, don't do anything (just show"
|
18
|
warn " what would be done)"
|
19
|
warn " what would be done)"
|
19
|
warn " -r REL use REL as Release number in SPEC file"
|
20
|
warn " -r REL use REL as Release number in SPEC file"
|
|
|
|
|
21
|
warn " -u URL use URL as base (to get last tag and"
|
22
|
warn " -u URL use URL as base (to get last tag and"
|
22
|
warn " compose Source0 in SPEC file)"
|
23
|
warn " compose Source0 in SPEC file)"
|
23
|
warn ""
|
24
|
warn ""
|
24
|
- warn "If -r or -v are not specified, git-describe master"
|
|
|
25
|
- warn "is consulted."
|
|
|
|
|
25
|
+ warn "If -b is not used, build is launched from last tag available"
|
|
|
26
|
+ warn "in the GitHub repo. In that case, Release is '1' and Version"
|
|
|
27
|
+ warn "is deduced from the tag by removing the initial 'v'."
|
|
|
28
|
+ warn ""
|
|
|
29
|
+ warn "If -b is used, the project repo is temporarily clonded, and"
|
|
|
30
|
+ warn "both Version and Release are found by consulting git-describe"
|
|
|
31
|
+ warn "on the specified branch."
|
26
|
exit 2
|
32
|
exit 2
|
27
|
}
|
33
|
}
|
28
|
|
34
|
|