sed Name as well as defne name

This commit is contained in:
Trevor Batley 2023-06-14 17:02:03 +10:00
parent 8f8632e65e
commit 1333f1a651

View File

@ -255,6 +255,7 @@ git mv "$SOURCEPKG.spec" "$TARGETPKG.spec"
#Update smeserver-<pkg>.spec
# - change name to smeserver-<pkg>
sed -i "/^Summary:/ s/e-smith/smeserver/" "$TARGETPKG.spec"
sed -i "/^Name:/ s/e-smith/smeserver/" "$TARGETPKG.spec"
sed -i "s/^%define name.*$SOURCEPKG/%define name $TARGETPKG/" "$TARGETPKG.spec"
sed -i "/^%description/{ n; s/e-smith/smeserver/}" "$TARGETPKG.spec"
@ -274,7 +275,7 @@ sed -i 's/ME MYSELF <myemail@koozali.org>/rename-e-smith-pkg.sh by Trevor Batley
sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec"
# - change Source: to new standard of tar.gz
sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec"
#sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec"
# tell git about the changes
git add "$TARGETPKG.spec"