Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing control files and updating the updateVersion.sh #1385

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions packaging/templates/package_scripts/control

This file was deleted.

13 changes: 0 additions & 13 deletions packaging/templates/package_scripts/control.arm64

This file was deleted.

14 changes: 0 additions & 14 deletions packaging/templates/package_scripts/control.profile.amd64

This file was deleted.

12 changes: 0 additions & 12 deletions packaging/templates/package_scripts/control.profile.arm64

This file was deleted.

12 changes: 0 additions & 12 deletions packaging/templates/package_scripts/control.validator

This file was deleted.

13 changes: 0 additions & 13 deletions packaging/templates/package_scripts/control.validator.arm64

This file was deleted.

16 changes: 0 additions & 16 deletions scripts/updateVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,6 @@ fi
echo ""
echo "New version is: $version"

# update version in all the 6 templates
replace="Version: "$version
fileArray=(
"${DIR}/../packaging/templates/package_scripts/control"
"${DIR}/../packaging/templates/package_scripts/control.arm64"
"${DIR}/../packaging/templates/package_scripts/control.profile.amd64"
"${DIR}/../packaging/templates/package_scripts/control.profile.arm64"
"${DIR}/../packaging/templates/package_scripts/control.validator"
"${DIR}/../packaging/templates/package_scripts/control.validator.arm64"
)
for file in ${fileArray[@]}; do
# get the line starting with `Version` in the control file and store it in the $temp variable
temp=$(grep "^Version.*" $file)
sed -i '' "s%$temp%$replace%" $file
done

# update version in ../params/version.go
versionFile="${DIR}/../params/version.go"
sed -i '' "s% = .*// Major% = $VersionMajor // Major%g" $versionFile
Expand Down
Loading