From 0e36564f1d9ea06f62d31d61157191f93ff023f8 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 24 Nov 2020 18:43:26 +0100 Subject: [PATCH] RELEASE.md: use perl, not sed Rationale: sed: 1: "VERSION": invalid command code V --- RELEASE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index deda4cfc3..9b3ee7f39 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -54,7 +54,7 @@ master branch which should be part of this release. Update the version: ``` -sed -i "s/Version: .*/Version: $VERSION/g" VERSION +perl -pi -e "s/Version: .*/Version: $VERSION/g" VERSION ``` ## Changelog @@ -155,7 +155,7 @@ git commit -av -m "Switch build type for 2.13" Set the `Version`, `revision` and `%changelog` inside the spec file: ``` -sed -i "s/Version:.*/Version: $VERSION/g" icinga2.spec +perl -pi -e "s/Version:.*/Version: $VERSION/g" icinga2.spec vim icinga2.spec @@ -182,8 +182,8 @@ icinga2 (2.11.0-1) icinga; urgency=medium Update the file `.gitlab-ci.yml`: ``` -sed -i "s/^ UPSTREAM_GIT_BRANCH: .*/ UPSTREAM_GIT_BRANCH: v$VERSION/g" .gitlab-ci.yml -sed -i "s/^ ICINGA_FORCE_VERSION: .*/ ICINGA_FORCE_VERSION: v$VERSION/g" .gitlab-ci.yml +perl -pi -e "s/^ UPSTREAM_GIT_BRANCH: .*/ UPSTREAM_GIT_BRANCH: v$VERSION/g" .gitlab-ci.yml +perl -pi -e "s/^ ICINGA_FORCE_VERSION: .*/ ICINGA_FORCE_VERSION: v$VERSION/g" .gitlab-ci.yml ```