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
6789eefe
Commit
6789eefe
authored
Sep 14, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix file name of blog release announcement
parent
4b3e1ea0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
scripts/make_release.bash
scripts/make_release.bash
+15
-16
No files found.
scripts/make_release.bash
View file @
6789eefe
...
@@ -145,6 +145,20 @@ assert_exists "$token_path" "$config_hpp_path" "$github_msg"
...
@@ -145,6 +145,20 @@ assert_exists "$token_path" "$config_hpp_path" "$github_msg"
assert_exists_not .make-release-steps.bash
assert_exists_not .make-release-steps.bash
# assert_git_status_clean "."
# assert_git_status_clean "."
# convert major.minor.patch version given as first argument into JJIIPP with:
# JJ: two-digit (zero padded) major version
# II: two-digit (zero padded) minor version
# PP: two-digit (zero padded) patch version
# but omit leading zeros
version_str
=
$(
echo
"
$1
"
|
awk
-F
.
'{ if ($1 > 0) printf("%d%02d%02d\n", $1, $2, $3); else printf("%02d%02d\n", $2, $3) }'
)
# piping through AWK/printf makes sure 0.15 is expanded to 0.15.0
tag_version
=
$(
echo
"
$1
"
|
awk
-F
.
'{ printf("%d.%d.%d", $1, $2, $3) }'
)
if
[
-n
"
$rc_version
"
]
;
then
tag_version
=
"
$tag_version
-rc.
$rc_version
"
fi
if
[
!
-f
"
$blog_msg
"
]
;
then
if
[
!
-f
"
$blog_msg
"
]
;
then
ask_permission
"
$blog_msg
missing, continue without blog post [y] or abort [n]?"
ask_permission
"
$blog_msg
missing, continue without blog post [y] or abort [n]?"
else
else
...
@@ -155,7 +169,7 @@ else
...
@@ -155,7 +169,7 @@ else
else
else
blog_release_version
=
"
$1
-rc.
$rc_version
"
blog_release_version
=
"
$1
-rc.
$rc_version
"
fi
fi
blog_target_file
=
"
$blog_posts_path
/
$(
date
+%F
)
-version-
$
1
-released.md"
blog_target_file
=
"
$blog_posts_path
/
$(
date
+%F
)
-version-
$
tag_version
-released.md"
assert_exists_not
"
$blog_target_file
"
assert_exists_not
"
$blog_target_file
"
assert_git_status_clean
"../blog/"
assert_git_status_clean
"../blog/"
fi
fi
...
@@ -166,14 +180,6 @@ echo "\
...
@@ -166,14 +180,6 @@ echo "\
set -e
set -e
"
>
.make-release-steps.bash
"
>
.make-release-steps.bash
# convert major.minor.patch version given as first argument into JJIIPP with:
# JJ: two-digit (zero padded) major version
# II: two-digit (zero padded) minor version
# PP: two-digit (zero padded) patch version
# but omit leading zeros
version_str
=
$(
echo
"
$1
"
|
awk
-F
.
'{ if ($1 > 0) printf("%d%02d%02d\n", $1, $2, $3); else printf("%02d%02d\n", $2, $3) }'
)
echo
">>> patching config.hpp"
echo
">>> patching config.hpp"
sed
"s/#define CAF_VERSION [0-9]*/#define CAF_VERSION
${
version_str
}
/g"
<
"
$config_hpp_path
"
>
.tmp_conf_hpp
sed
"s/#define CAF_VERSION [0-9]*/#define CAF_VERSION
${
version_str
}
/g"
<
"
$config_hpp_path
"
>
.tmp_conf_hpp
...
@@ -194,13 +200,6 @@ git commit -a -m \"Change version to $1\"
...
@@ -194,13 +200,6 @@ git commit -a -m \"Change version to $1\"
fi
fi
# piping through AWK/printf makes sure 0.15 is expanded to 0.15.0
tag_version
=
$(
echo
"
$1
"
|
awk
-F
.
'{ printf("%d.%d.%d", $1, $2, $3) }'
)
if
[
-n
"
$rc_version
"
]
;
then
tag_version
=
"
$tag_version
-rc.
$rc_version
"
fi
token
=
$(
cat
"
$token_path
"
)
token
=
$(
cat
"
$token_path
"
)
tag_descr
=
$(
awk
1
ORS
=
'\\r\\n'
"
$github_msg
"
)
tag_descr
=
$(
awk
1
ORS
=
'\\r\\n'
"
$github_msg
"
)
github_json
=
$(
printf
'{"tag_name": "%s","name": "%s","body": "%s","draft": false,"prerelease": false}'
"
$tag_version
"
"
$tag_version
"
"
$tag_descr
"
)
github_json
=
$(
printf
'{"tag_name": "%s","name": "%s","body": "%s","draft": false,"prerelease": false}'
"
$tag_version
"
"
$tag_version
"
"
$tag_descr
"
)
...
...
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