Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
packages
Commits
070fa46c
Commit
070fa46c
authored
May 09, 2019
by
Lars Beckers
Browse files
fix variable declaration, add set -e
parent
e2ad7a9f
Pipeline
#866
failed with stage
in 1 minute and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/common.sh
View file @
070fa46c
#!/bin/bash
set
-e
# $1: source package name
# $2: distribution
function
get_sources
()
{
...
...
@@ -39,9 +41,8 @@ function dch_custom() {
}
function
dch_backport
()
{
local
version, name
version
=
$(
cat
/etc/os-release |
grep
VERSION_ID
=
|
sed
-E
's/.*([0-9]+).*/\1/'
)
name
=
$(
cat
/etc/os-release |
grep
VERSION
=
|
sed
's/.*(\(.*\)).*/\1/'
)
local
version
=
$(
cat
/etc/os-release |
grep
VERSION_ID
=
|
sed
-E
's/.*([0-9]+).*/\1/'
)
local
name
=
$(
cat
/etc/os-release |
grep
VERSION
=
|
sed
's/.*(\(.*\)).*/\1/'
)
debchange
--local
~bpo
$version
+
--distribution
$name
-backports
"Rebuild for
$name
-backports."
}
...
...
Write
Preview
Supports
Markdown
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