Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Docker Build Images
scripts
Commits
dbef31b8
Commit
dbef31b8
authored
Nov 29, 2019
by
Markus Frosch
Browse files
release: Fix time locale for RPM
parent
e2c4284f
Pipeline
#7445
passed with stage
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
icinga-build-release
View file @
dbef31b8
...
...
@@ -10,6 +10,8 @@ RPM_VERSION_REPLACE='\1'
RPM_REVISION_RE
=
'^(Release:\s+).*'
RPM_REVISION_SUFFIX
=
'%{?dist}'
export
LC_TIME
=
C
error
()
{
if
[
-t
2
]
;
then
{
...
...
@@ -37,7 +39,7 @@ help() {
}
rpm_date
()
{
LANG
=
C
echo
"
$(
date
+%A |
sed
-r
's~([a-z]{3}).*~\1~i'
)
"
"
$(
date
+
'%b %d %Y'
)
"
echo
"
$(
date
+%A |
sed
-r
's~([a-z]{3}).*~\1~i'
)
"
"
$(
date
+
'%b %d %Y'
)
"
}
if
[
$#
-ge
1
]
;
then
...
...
@@ -121,7 +123,7 @@ if [ "$variant" = deb ]; then
source_name
=
"
$(
grep
Source: debian/control |
awk
'{print $2}'
)
"
changelog
=
"
${
source_name
}
(
${
full_version
}
)
${
DCH_DIST
}
; urgency=medium"
$'
\n\n
'
changelog+
=
" *
${
message
}
"
$'
\n
'
changelog+
=
$'
\n
'
" --
${
DEBFULLNAME
}
<
${
DEBEMAIL
}
>
$(
LANG
=
C
date
-R
)
"
$'
\n\n
'
changelog+
=
$'
\n
'
" --
${
DEBFULLNAME
}
<
${
DEBEMAIL
}
>
$(
date
-R
)
"
$'
\n\n
'
# Insert into changelog
echo
-n
"
${
changelog
}
"
|
cat
- debian/changelog
>
debian/changelog.tmp
...
...
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