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*