You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/01/06 16:07:34 UTC
(plc4x) 03/15: feat: Added functionality for automatically preparing the RELEASE_NOTES
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch feature/new-ui-tool
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit c480016c326c227ea5722094cefe22d364cd6abc
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Sat Jan 6 16:21:19 2024 +0100
feat: Added functionality for automatically preparing the RELEASE_NOTES
---
tools/release-1-create-branch.sh | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/tools/release-1-create-branch.sh b/tools/release-1-create-branch.sh
index 26eb2e75e7..7b552222f1 100755
--- a/tools/release-1-create-branch.sh
+++ b/tools/release-1-create-branch.sh
@@ -49,20 +49,20 @@ fi
sed -i '' 's/(Unreleased) *//' ../RELEASE_NOTES
# 4. Add a new section for the new version to the RELEASE_NOTES file
-HEADER="==============================================================
-(Unreleased) Apache PLC4X $NEW_VERSION
-==============================================================
-
-New Features
-------------
-
-Incompatible changes
---------------------
-
-Bug Fixes
----------
-"
-cat <(echo "$HEADER") ../RELEASE_NOTES > ../RELEASE_NOTES
+sed -i '1i\
+==============================================================\
+(Unreleased) Apache PLC4X $NEW_VERSION\
+==============================================================\
+\
+New Features\
+------------\
+\
+Incompatible changes\
+--------------------\
+\
+Bug Fixes\
+---------\
+"' ../RELEASE_NOTES
# 5. Commit the change.
# TODO: Implement ...