283
283
found=true
284
284
for fn in " $RELEASE_AUX /release-version-fn.sh" \
285
285
" $RELEASE_AUX /release-state-fn.sh" \
286
+ " $RELEASE_AUX /release-data-fn.sh" \
286
287
" $RELEASE_AUX /string-fn.sh" \
287
288
" $RELEASE_AUX /upload-fn.sh" ; do
288
289
if ! [ -f " $fn " ]; then
297
298
# Load version functions
298
299
. $RELEASE_AUX /release-version-fn.sh
299
300
. $RELEASE_AUX /release-state-fn.sh
301
+ . $RELEASE_AUX /release-data-fn.sh
300
302
# Load string manipulation functions
301
303
. $RELEASE_AUX /string-fn.sh
302
304
# Load upload backend functions
@@ -532,10 +534,10 @@ update_branch=$(format_string "$branch_fmt" \
532
534
" v=$FULL_VERSION " )
533
535
534
536
# Make the release tag and branch name according to our current data
535
- tag =$( format_string " $tag_fmt " \
536
- " b=$orig_release_branch " \
537
- " t=$( std_tag_name) " \
538
- " v=$FULL_VERSION " )
537
+ release_tag =$( format_string " $tag_fmt " \
538
+ " b=$orig_release_branch " \
539
+ " t=$( std_tag_name) " \
540
+ " v=$FULL_VERSION " )
539
541
release_branch=$( format_string " $branch_fmt " \
540
542
" b=$orig_release_branch " \
541
543
" t=$( std_tag_name) " \
@@ -599,8 +601,9 @@ if [ -n "$PRE_LABEL" ]; then
599
601
release_text=" $SERIES$_BUILD_METADATA $PRE_LABEL $PRE_NUM "
600
602
announce_template=openssl-announce-pre-release.tmpl
601
603
else
604
+ release_type=$( std_release_type $VERSION )
602
605
release_text=" $release "
603
- announce_template=openssl-announce-release.tmpl
606
+ announce_template=openssl-announce-release- $release_type .tmpl
604
607
fi
605
608
$VERBOSE " == Updated version information to $release "
606
609
@@ -621,8 +624,8 @@ git commit $git_quiet -m "Prepare for release of $release_text"$'\n\nRelease: ye
621
624
if [ -n " $reviewers " ]; then
622
625
addrev --release --nopr $reviewers
623
626
fi
624
- $ECHO " Tagging release with tag $tag . You may need to enter a pass phrase"
625
- git tag$tagkey " $tag " -m " OpenSSL $release release tag"
627
+ $ECHO " Tagging release with tag $release_tag . You may need to enter a pass phrase"
628
+ git tag$tagkey " $release_tag " -m " OpenSSL $release release tag"
626
629
627
630
tarfile=openssl-$release .tar
628
631
tgzfile=$tarfile .gz
@@ -662,6 +665,7 @@ $VERBOSE "== Generating announcement text: $announce"
662
665
# Hack the announcement template
663
666
cat " $RELEASE_AUX /$announce_template " \
664
667
| sed -e " s|\\\$ release_text|$release_text |g" \
668
+ -e " s|\\\$ release_tag|$release_tag |g" \
665
669
-e " s|\\\$ release|$release |g" \
666
670
-e " s|\\\$ series|$SERIES |g" \
667
671
-e " s|\\\$ label|$PRE_LABEL |g" \
@@ -707,7 +711,7 @@ $VERBOSE "== Generating metadata file: $metadata"
707
711
fi
708
712
echo " release_branch='$orig_release_branch '"
709
713
fi
710
- echo " release_tag='$tag '"
714
+ echo " release_tag='$release_tag '"
711
715
echo " upload_files='${staging_files[@]} '"
712
716
echo " source_repo='$orig_remote_url '"
713
717
) > ../$metadata
@@ -884,7 +888,7 @@ Push them to github, make PRs from them and have them approved.
884
888
885
889
Update branch: $update_branch
886
890
Release branch: $release_branch
887
- Tag: $tag
891
+ Tag: $release_tag
888
892
889
893
When merging everything into the main repository, do it like this:
890
894
@@ -893,7 +897,7 @@ When merging everything into the main repository, do it like this:
893
897
git push git@github.openssl.org:openssl/openssl.git \\
894
898
$update_branch :$orig_update_branch
895
899
git push git@github.openssl.org:openssl/openssl.git \\
896
- $tag
900
+ $release_tag
897
901
EOF
898
902
elif [ " $update_branch " != " $orig_update_branch " ]; then
899
903
# "Normal" scenario without --branch
@@ -903,14 +907,14 @@ repository. Push them to github, make PRs from them and have them
903
907
approved.
904
908
905
909
Release/update branch: $update_branch
906
- Tag: $tag
910
+ Tag: $release_tag
907
911
908
912
When merging everything into the main repository, do it like this:
909
913
910
914
git push git@github.openssl.org:openssl/openssl.git \\
911
915
$update_branch :$orig_update_branch
912
916
git push git@github.openssl.org:openssl/openssl.git \\
913
- $tag
917
+ $release_tag
914
918
EOF
915
919
elif [ " $release_branch " != " $update_branch " ]; then
916
920
# --clean-worktree and --branch scenario
@@ -921,7 +925,7 @@ PRs from them and have them approved:
921
925
922
926
Updated branch: $update_branch
923
927
Release branch: $release_branch
924
- Tag: $tag
928
+ Tag: $release_tag
925
929
926
930
When merging everything into the main repository, do it like this:
927
931
@@ -930,7 +934,7 @@ When merging everything into the main repository, do it like this:
930
934
git push git@github.openssl.org:openssl/openssl.git \\
931
935
$update_branch
932
936
git push git@github.openssl.org:openssl/openssl.git \\
933
- $tag
937
+ $release_tag
934
938
EOF
935
939
else
936
940
# --clean-worktree without --branch scenario
@@ -940,14 +944,14 @@ branch has been updated. Push them to github, make PRs from them and
940
944
have them approved.
941
945
942
946
Release/update branch: $update_branch
943
- Tag: $tag
947
+ Tag: $release_tag
944
948
945
949
When merging everything into the main repository, do it like this:
946
950
947
951
git push git@github.openssl.org:openssl/openssl.git \\
948
952
$update_branch
949
953
git push git@github.openssl.org:openssl/openssl.git \\
950
- $tag
954
+ $release_tag
951
955
EOF
952
956
fi
953
957
0 commit comments