From 988513d86bcac06a2e6ab3c1627d6673bd264fc7 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 15 Jun 2023 15:46:13 +1000 Subject: [PATCH] package specific changes from make prep --- git-cvs2git.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/git-cvs2git.sh b/git-cvs2git.sh index 583e71e..a3ec99f 100755 --- a/git-cvs2git.sh +++ b/git-cvs2git.sh @@ -530,6 +530,17 @@ if [[ "$NAME" =~ ^(smeserver-|e-smith-).* ]]; then # sed - TBD - to look for "fix [SME: ]" sed -i 's/fix \[SME: \]/Roll up patches and move to git repo \[SME: 12338\]/' $(basename $SPECFILE) sed -i 's/ME MYSELF /cvs2git.sh aka Brian Read /' $(basename $SPECFILE) + # package specific changes needed because we use make prep to create the root tree + if [[ $NAME == "e-smith-grub" ]] ; then + sed -i '/^Source1:/d' $(basename $SPECFILE) + sed -i '/^Source2:/d' $(basename $SPECFILE) + sed -i '/^%setup/{n;N;N;N;d}' $(basename $SPECFILE) + sed -i '/\[SME: 12338\]/a - Remove Source1 & Source2 \[SME: 12338\]' $(basename $SPECFILE) + fi + if [[ $NAME == "e-smith-lib" ]] ; then + sed -i '/mkdir *e-smith-lib-update/d' $(basename $SPECFILE) + sed -i '/\[SME: 12338\]/a - Remove create e-smith-lib-update event \[SME: 12338\]' $(basename $SPECFILE) + fi # Add in the autochangelog and autorelease macros into the spec file # Commented out for now until we have build systems that can install the rpmautospec package (CEntos, Rocky etc V9 only so far) # sed -i 's/Release:.*/Release: %autorelease/' $(basename $SPECFILE)