sed Name as well as defne name
This commit is contained in:
parent
8f8632e65e
commit
1333f1a651
@ -255,6 +255,7 @@ git mv "$SOURCEPKG.spec" "$TARGETPKG.spec"
|
|||||||
#Update smeserver-<pkg>.spec
|
#Update smeserver-<pkg>.spec
|
||||||
# - change name to smeserver-<pkg>
|
# - change name to smeserver-<pkg>
|
||||||
sed -i "/^Summary:/ s/e-smith/smeserver/" "$TARGETPKG.spec"
|
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 "s/^%define name.*$SOURCEPKG/%define name $TARGETPKG/" "$TARGETPKG.spec"
|
||||||
sed -i "/^%description/{ n; s/e-smith/smeserver/}" "$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"
|
sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec"
|
||||||
|
|
||||||
# - change Source: to new standard of tar.gz
|
# - 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
|
# tell git about the changes
|
||||||
git add "$TARGETPKG.spec"
|
git add "$TARGETPKG.spec"
|
||||||
|
Loading…
Reference in New Issue
Block a user