Skip to content

Commit

Permalink
Removing control files and updating the updateVersion.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
djpolygon committed Dec 11, 2024
1 parent e1f6d25 commit e24a145
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 92 deletions.
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

0 comments on commit e24a145

Please sign in to comment.