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
d1d4ea7f
Commit
d1d4ea7f
authored
Dec 09, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #374 from firegurafiku/develop
obs-commit-version.sh: fix broken builds on OBS
parents
7215dc03
02890635
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
scripts/obs-commit-version.sh
scripts/obs-commit-version.sh
+13
-4
No files found.
scripts/obs-commit-version.sh
View file @
d1d4ea7f
...
@@ -48,6 +48,11 @@ type osc >/dev/null 2>&1 || {
...
@@ -48,6 +48,11 @@ type osc >/dev/null 2>&1 || {
exit
1
exit
1
}
}
if
[
"$#"
-ne
1
]
;
then
echo
"Either --release or --nightly option must be specified."
>
&2
exit
1
fi
sourceDir
=
"
$PWD
"
sourceDir
=
"
$PWD
"
# Check if header exists.
# Check if header exists.
...
@@ -85,7 +90,7 @@ else
...
@@ -85,7 +90,7 @@ else
fi
fi
packageFqn
=
"
$projectName
/
$packageName
"
packageFqn
=
"
$projectName
/
$packageName
"
sourceTarball
=
"
${
versionAsStr
}
.tar.gz"
sourceTarball
=
"
${
packageVersion
}
.tar.gz"
buildDir
=
"
$sourceDir
/build"
buildDir
=
"
$sourceDir
/build"
obsDir
=
"
$buildDir
/obs-temp"
obsDir
=
"
$buildDir
/obs-temp"
...
@@ -111,7 +116,11 @@ cd - >/dev/null
...
@@ -111,7 +116,11 @@ cd - >/dev/null
osc add
"
$sourceTarball
"
osc add
"
$sourceTarball
"
# Fix package version and commit.
# Fix package version and commit.
sed
-i
.bk
-E
-e
"s/^Version:([ ]+).+/Version:
\1
$packageVersion
/g"
"
$packageName
.spec"
sed
-i
.bk
-E
\
echo
"[obs-commit-version] Comitting:
$packageVersion
,
$gitBranch
"
-e
"s/^Version:([ ]+).+/Version:
\1
$packageVersion
/g"
\
osc commit
-m
"Automatic commit:
$packageVersion
,
$gitBranch
"
"
$packageName
.spec"
\
"
$packageName
.dsc"
echo
"[obs-commit-version] Comitting:
$packageVersion
,
$1
"
osc commit
-m
"Automatic commit:
$packageVersion
,
$1
"
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