Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
3e1f619e
Commit
3e1f619e
authored
Dec 08, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add [--nightly|--release] option to OBS script
parent
ca2c0a57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
scripts/obs-commit-version.sh
scripts/obs-commit-version.sh
+4
-9
No files found.
scripts/obs-commit-version.sh
View file @
3e1f619e
...
...
@@ -8,7 +8,7 @@
# $ make
# $ make test
# $ make doc <-- this is a necessary step!
# $ scripts/obs-commit-version.sh
# $ scripts/obs-commit-version.sh
[--nightly|--release]
#
# In brief, it performs the following steps:
#
...
...
@@ -37,8 +37,6 @@ set -o nounset
set
-o
errexit
# Script configuration (yet unlikely to change in the future).
confReleaseBranch
=
"master"
confNightlyBranch
=
"develop"
confReleaseProject
=
"devel:libraries:caf"
confNightlyProject
=
"devel:libraries:caf:nightly"
confReleasePackage
=
"caf"
...
...
@@ -72,20 +70,17 @@ versionMinor=$(echo "( $versionAsInt / 100 ) % 100" | bc)
versionPatch
=
$(
echo
"
$versionAsInt
% 100"
| bc
)
versionAsStr
=
"
$versionMajor
.
$versionMinor
.
$versionPatch
"
# Retrieve current branch from git.
gitBranch
=
`
git rev-parse
--abbrev-ref
HEAD
`
if
[
"
$gitBranch
"
=
"
$confReleaseBranch
"
]
;
then
if
[
"
$1
"
=
"--release"
]
;
then
projectName
=
"
$confReleaseProject
"
packageName
=
"
$confReleasePackage
"
packageVersion
=
"
${
versionAsStr
}
"
elif
[
"
$
gitBranch
"
=
"
$confNightlyBranch
"
]
;
then
elif
[
"
$
1
"
=
"--nightly
"
]
;
then
projectName
=
"
$confNightlyProject
"
packageName
=
"
$confNightlyPackage
"
packageVersion
=
"
${
versionAsStr
}
_
$(
date
+%Y%m%d
)
"
else
# Don't prevent other branches from building, but issue a warning.
echo
"
Not on '
$confReleaseBranch
' or '
$confNightlyBranch
' branch
. Exitting."
>
&2
echo
"
Use with either '--nightly' or '--release'
. Exitting."
>
&2
exit
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment