From 7081caa7ff237d9e43afa77a563c62a468454490 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Wed, 31 May 2023 18:13:20 +1000 Subject: [PATCH] legacy bugs link --- rename-e-smith-pkg.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index 2f742f2..f0a14ee 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -212,8 +212,14 @@ cd $GITFiles/$TARGETPKG #Update README.md # - new name -# - Bugzilla link to new name whilst keeping old link for Legacy sed -i 's/e-smith/smeserver/g' README.md + +# - Bugzilla link to new name whilst keeping old link for Legacy +sed -i '/Show list/p' README.md +sed -i '/Show list/ s/)/)\\/' README.md +sed -i "/Show list/{ n; s/Show list of outstanding bugs\:/And a list of outstanding Legacy bugs\: \($SOURCEPKG)/}" README.md +sed -i '/Show list/{ n; s/smeserver-/e-smith-/g}' README.md + git add README.md #Update Makefile @@ -228,7 +234,6 @@ mv "$SOURCEPKG.spec" "$TARGETPKG.spec" #Update smeserver-.spec # - change name to smeserver- (%define name) - sed -i "s/^%define name.*$SOURCEPKG/%define name $TARGETPKG/" "$TARGETPKG.spec" # - change all Requires: and BuildRequires: e-smith* to smeserver*