fix e-smith-lib sed

This commit is contained in:
Trevor Batley 2023-06-15 15:53:29 +10:00
parent 6d940ffda8
commit 7a7a68753a

View File

@ -538,7 +538,7 @@ if [[ "$NAME" =~ ^(smeserver-|e-smith-).* ]]; then
sed -i '/\[SME: 12338\]/a - Remove Source1 & Source2 \[SME: 12338\]' $(basename $SPECFILE) sed -i '/\[SME: 12338\]/a - Remove Source1 & Source2 \[SME: 12338\]' $(basename $SPECFILE)
fi fi
if [[ $NAME == "e-smith-lib" ]] ; then if [[ $NAME == "e-smith-lib" ]] ; then
sed -i '/mkdir *e-smith-lib-update/d' $(basename $SPECFILE) sed -i '/^%setup/{n;N;d}' $(basename $SPECFILE)
sed -i '/\[SME: 12338\]/a - Remove create e-smith-lib-update event \[SME: 12338\]' $(basename $SPECFILE) sed -i '/\[SME: 12338\]/a - Remove create e-smith-lib-update event \[SME: 12338\]' $(basename $SPECFILE)
fi fi
# Add in the autochangelog and autorelease macros into the spec file # Add in the autochangelog and autorelease macros into the spec file